mirror of
https://github.com/containers/podman.git
synced 2025-10-09 23:15:39 +08:00
test/system: run_podman ? needs quoting
Bash will expand a signle ? to a file name which consists of a single char, and thus if you have a file named "a" in the cwd it will add a as argument which causes podman a ... to be executed which clearly fails the test. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -1638,7 +1638,7 @@ search | $IMAGE |
|
||||
"$command --authfile=nonexistent-path"
|
||||
|
||||
if [[ "$command" != "logout" ]]; then
|
||||
REGISTRY_AUTH_FILE=$bogus run_podman ? $command $args
|
||||
REGISTRY_AUTH_FILE=$bogus run_podman '?' $command $args
|
||||
assert "$output" !~ "credential file is not accessible" \
|
||||
"$command REGISTRY_AUTH_FILE=nonexistent-path"
|
||||
|
||||
|
@ -114,7 +114,7 @@ load helpers
|
||||
run_podman run --rm -d --name $cname $IMAGE top
|
||||
run_podman kill $cname
|
||||
is "$output" $cname
|
||||
run_podman ? wait $cname
|
||||
run_podman '?' wait $cname
|
||||
}
|
||||
|
||||
# bats test_tags=ci:parallel
|
||||
|
Reference in New Issue
Block a user