tests: use inverted assert

Also echo the status
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2026-05-08 21:39:57 -04:00
1 parent 01268ebad9
commit 38de83eabf
1 file changed
+6 -3
+6 -3
View File
@@ -24,7 +24,8 @@ teardown() {
run "$DOCKER_BIN" container top "$CIDS" run "$DOCKER_BIN" container top "$CIDS"
echo "output: $output" echo "output: $output"
assert_output_contains "<defunct>" "0" echo "status: $status"
assert_output_not_contains "<defunct>"
} }
@test "(init) dockerfile no tini" { @test "(init) dockerfile no tini" {
@@ -39,7 +40,8 @@ teardown() {
run "$DOCKER_BIN" container top "$CIDS" run "$DOCKER_BIN" container top "$CIDS"
echo "output: $output" echo "output: $output"
assert_output_contains "<defunct>" "0" echo "status: $status"
assert_output_not_contains "<defunct>"
} }
@test "(init) dockerfile with tini" { @test "(init) dockerfile with tini" {
@@ -54,5 +56,6 @@ teardown() {
run "$DOCKER_BIN" container top "$CIDS" run "$DOCKER_BIN" container top "$CIDS"
echo "output: $output" echo "output: $output"
assert_output_contains "<defunct>" "0" echo "status: $status"
assert_output_not_contains "<defunct>"
} }