diff options
author | Ed Santiago <santiago@redhat.com> | 2021-10-20 09:11:57 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2021-10-20 11:09:32 -0600 |
commit | 70a5d8cd1d8e44d755be316730046b73a4a6e2eb (patch) | |
tree | 9b94171cc3807e028d218a793b73aded58a7badb /test/system/015-help.bats | |
parent | eba281c3e0e69533427d3eb5c66c60b5ca038c1b (diff) | |
download | podman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.tar.gz podman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.tar.bz2 podman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.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/system/015-help.bats')
-rw-r--r-- | test/system/015-help.bats | 6 |
1 files changed, 6 insertions, 0 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 |