Skip to content

Commit 198e92a

Browse files
committed
added debug output on failed test
Signed-off-by: Kilian Hanich <[email protected]>
1 parent dfebc3f commit 198e92a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/system/101-create.bats

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,10 @@ teardown() {
796796

797797
assert_line --index 0 "Created container: testbuild"
798798
assert_line --index 1 "Enter with: toolbox enter testbuild"
799-
assert [ ${#lines[q]} -eq 2 ]
799+
if [ ${#lines[q]} -ne 2 ]
800+
then
801+
echo "${output}"
802+
fi
800803

801804
run $PODMAN images --filter reference=localhost/testbuild
802805
assert_success
@@ -812,7 +815,10 @@ teardown() {
812815

813816
assert_line --index 0 "Created container: testbuild"
814817
assert_line --index 1 "Enter with: toolbox enter testbuild"
815-
assert [ ${#lines[q]} -eq 2 ]
818+
if [ ${#lines[q]} -ne 2 ]
819+
then
820+
echo "${output}"
821+
fi
816822

817823
run $PODMAN images --filter reference="$build_tag"
818824
assert_success

0 commit comments

Comments
 (0)