mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #13846 from edsantiago/bats
System tests: fix oops in start --filter tests
This commit is contained in:
@ -41,18 +41,19 @@ load helpers
|
|||||||
@test "podman start --filter - start only containers that match the filter" {
|
@test "podman start --filter - start only containers that match the filter" {
|
||||||
run_podman run -d $IMAGE /bin/true
|
run_podman run -d $IMAGE /bin/true
|
||||||
cid="$output"
|
cid="$output"
|
||||||
run_podman start --filter restart-policy=always $cid "CID of restart-policy=always container"
|
run_podman start --filter restart-policy=always $cid
|
||||||
is "$output" ""
|
is "$output" "" "CID of restart-policy=always container"
|
||||||
|
|
||||||
run_podman start --filter restart-policy=none $cid "CID of restart-policy=none container"
|
run_podman start --filter restart-policy=none $cid
|
||||||
is "$output" "$cid"
|
is "$output" "$cid" "CID of restart-policy=none container"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "podman start --filter invalid-restart-policy - return error" {
|
@test "podman start --filter invalid-restart-policy - return error" {
|
||||||
run_podman run -d $IMAGE /bin/true
|
run_podman run -d $IMAGE /bin/true
|
||||||
cid="$output"
|
cid="$output"
|
||||||
run_podman 125 start --filter restart-policy=fakepolicy $cid "CID of restart-policy=<not-exists> container"
|
run_podman 125 start --filter restart-policy=fakepolicy $cid
|
||||||
is "$output" "Error: fakepolicy invalid restart policy"
|
is "$output" "Error: fakepolicy invalid restart policy" \
|
||||||
|
"CID of restart-policy=<not-exists> container"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "podman start --all --filter" {
|
@test "podman start --all --filter" {
|
||||||
|
Reference in New Issue
Block a user