Skip to content

Commit d40dd88

Browse files
committed
test/system: Check if the container was created by 'create'
Checking the exit code, and the standard error and output streams of the 'create' command don't say anything about whether the container was actually created. Therefore, 'podman ps --all' is used to verify that. Other tests already do this, so this change makes these tests consistent with the rest. #1715
1 parent 7e20a43 commit d40dd88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/system/101-create.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ teardown() {
4545

4646
# shellcheck disable=SC2154
4747
assert [ ${#stderr_lines[@]} -eq 0 ]
48+
49+
run podman ps --all
50+
51+
assert_success
52+
assert_output --regexp "Created[[:blank:]]+$default_container"
4853
}
4954

5055
@test "create: With a custom name (using option --container)" {

0 commit comments

Comments
 (0)