From 259afdf815e718b76872a217f784a94e5640c30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Wed, 21 Jul 2021 17:23:39 +0200 Subject: [PATCH] test/system: Adjust asserts for broken test The output of `podman build` has changed a bit. Each line of log describing the build is now in the format of: - STEP i/n: msg instead of: - STEP i: msg where i is the current step and n the maximum number of steps. The exact format is not important for the purpose of testing Toolbox, so we may fallback to partial string testing. Also the latest step ("COMMIT") seems to no longer be considered a step, so just check for the word. https://github.com/containers/toolbox/pull/846 --- test/system/102-list.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/system/102-list.bats b/test/system/102-list.bats index ea74645..184ad6c 100644 --- a/test/system/102-list.bats +++ b/test/system/102-list.bats @@ -89,9 +89,9 @@ teardown() { run $PODMAN build "$BATS_TMPDIR" assert_success - assert_line --index 0 "STEP 1: FROM scratch" - assert_line --index 1 "STEP 2: LABEL com.github.containers.toolbox=\"true\"" - assert_line --index 2 "STEP 3: COMMIT" + assert_line --index 0 --partial "FROM scratch" + assert_line --index 1 --partial "LABEL com.github.containers.toolbox=\"true\"" + assert_line --index 2 --partial "COMMIT" assert_line --index 3 --regexp "^--> [a-z0-9]*$" run $TOOLBOX list