summaryrefslogtreecommitdiff
path: root/test/system/045-start.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-22 06:30:49 -0400
committerGitHub <noreply@github.com>2022-04-22 06:30:49 -0400
commit82393e256593b9c78e64d2fecf47813b6c6f1b2c (patch)
tree01b9b47e9d7f55d9f7adb06ae12732a420f3682e /test/system/045-start.bats
parent26a51b29009e6250f2b52fc7c13fb1b65208754e (diff)
parent97ee4114655a9442a34130632c47eea5861ca73b (diff)
downloadpodman-82393e256593b9c78e64d2fecf47813b6c6f1b2c.tar.gz
podman-82393e256593b9c78e64d2fecf47813b6c6f1b2c.tar.bz2
podman-82393e256593b9c78e64d2fecf47813b6c6f1b2c.zip
Merge pull request #13935 from edsantiago/bats_assert
system tests: add assert(), and start using it
Diffstat (limited to 'test/system/045-start.bats')
-rw-r--r--test/system/045-start.bats5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/system/045-start.bats b/test/system/045-start.bats
index 31e924ca5..ad8483bba 100644
--- a/test/system/045-start.bats
+++ b/test/system/045-start.bats
@@ -21,9 +21,8 @@ load helpers
is "$output" ".*$cid_none_implicit" "started: container with no --restart"
is "$output" ".*$cid_none_explicit" "started: container with --restart=no"
is "$output" ".*$cid_on_failure" "started: container with --restart=on-failure"
- if [[ $output =~ $cid_always ]]; then
- die "podman start --all restarted a running container"
- fi
+ assert "$output" !~ "$cid_always" \
+ "podman start --all should not restart a running container"
run_podman wait $cid_none_implicit $cid_none_explicit $cid_on_failure