summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-12 15:37:42 -0400
committerGitHub <noreply@github.com>2022-04-12 15:37:42 -0400
commitd16e3144e9f1dffb51a28d7d245c296c9e9281f1 (patch)
tree612ccff2f2dd4cb6e046201784af2bb1a1097075
parentab27836b56ee165526e9f1dd5a41ffd74f823f3d (diff)
parent2c800a717c6396883c9e5a9c984a842a7aa5590d (diff)
downloadpodman-d16e3144e9f1dffb51a28d7d245c296c9e9281f1.tar.gz
podman-d16e3144e9f1dffb51a28d7d245c296c9e9281f1.tar.bz2
podman-d16e3144e9f1dffb51a28d7d245c296c9e9281f1.zip
Merge pull request #13846 from edsantiago/bats
System tests: fix oops in start --filter tests
-rw-r--r--test/system/045-start.bats13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/system/045-start.bats b/test/system/045-start.bats
index 2ea057cd3..31e924ca5 100644
--- a/test/system/045-start.bats
+++ b/test/system/045-start.bats
@@ -41,18 +41,19 @@ load helpers
@test "podman start --filter - start only containers that match the filter" {
run_podman run -d $IMAGE /bin/true
cid="$output"
- run_podman start --filter restart-policy=always $cid "CID of restart-policy=always container"
- is "$output" ""
+ run_podman start --filter restart-policy=always $cid
+ is "$output" "" "CID of restart-policy=always container"
- run_podman start --filter restart-policy=none $cid "CID of restart-policy=none container"
- is "$output" "$cid"
+ run_podman start --filter restart-policy=none $cid
+ is "$output" "$cid" "CID of restart-policy=none container"
}
@test "podman start --filter invalid-restart-policy - return error" {
run_podman run -d $IMAGE /bin/true
cid="$output"
- run_podman 125 start --filter restart-policy=fakepolicy $cid "CID of restart-policy=<not-exists> container"
- is "$output" "Error: fakepolicy invalid restart policy"
+ run_podman 125 start --filter restart-policy=fakepolicy $cid
+ is "$output" "Error: fakepolicy invalid restart policy" \
+ "CID of restart-policy=<not-exists> container"
}
@test "podman start --all --filter" {