summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-10-20 09:11:57 -0600
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commitf8ede7c5ed01324f47ebc01f69c11ab1046e1ebb (patch)
tree3d4b5654c1a0cd0afae55a7bbd575dcbd5999932 /test
parentc3f3e6d3b8feabb3116dd5867f2e1117bdb5734f (diff)
downloadpodman-f8ede7c5ed01324f47ebc01f69c11ab1046e1ebb.tar.gz
podman-f8ede7c5ed01324f47ebc01f69c11ab1046e1ebb.tar.bz2
podman-f8ede7c5ed01324f47ebc01f69c11ab1046e1ebb.zip
System tests: confirm that -a and -l clash
...and fix one instance where there was no check Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/015-help.bats6
-rw-r--r--test/system/045-start.bats4
2 files changed, 6 insertions, 4 deletions
diff --git a/test/system/015-help.bats b/test/system/015-help.bats
index 5f38c34a1..b0795b524 100644
--- a/test/system/015-help.bats
+++ b/test/system/015-help.bats
@@ -86,6 +86,12 @@ function check_help() {
run_podman 125 "$@" $cmd -l nonexistent-container
is "$output" "Error: .*--latest and \(containers\|pods\|arguments\) cannot be used together" \
"'$command_string' with both -l and container"
+
+ # Combine -l and -a, too (but spell it as --all, because "-a"
+ # means "attach" in podman container start)
+ run_podman 125 "$@" $cmd --all --latest
+ is "$output" "Error: \(--all and --latest cannot be used together\|--all, --latest and containers cannot be used together\|--all, --latest and arguments cannot be used together\|unknown flag\)" \
+ "'$command_string' with both --all and --latest"
fi
fi
diff --git a/test/system/045-start.bats b/test/system/045-start.bats
index 7e4bbde8d..2ea057cd3 100644
--- a/test/system/045-start.bats
+++ b/test/system/045-start.bats
@@ -36,10 +36,6 @@ load helpers
expected="Error: either start all containers or the container(s) provided in the arguments"
run_podman 125 start --all 12333
is "$output" "$expected" "start --all, with args, throws error"
- if ! is_remote; then
- run_podman 125 start --all --latest
- is "$output" "$expected" "podman start --all --latest"
- fi
}
@test "podman start --filter - start only containers that match the filter" {