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:
Paul Holzinger
2025-10-06 12:43:06 +02:00
parent 80b20c7614
commit fdb5ac5e8f
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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