Skip to content

Commit fdb5ac5

Browse files
committed
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 <[email protected]>
1 parent 80b20c7 commit fdb5ac5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/system/030-run.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ search | $IMAGE |
16381638
"$command --authfile=nonexistent-path"
16391639

16401640
if [[ "$command" != "logout" ]]; then
1641-
REGISTRY_AUTH_FILE=$bogus run_podman ? $command $args
1641+
REGISTRY_AUTH_FILE=$bogus run_podman '?' $command $args
16421642
assert "$output" !~ "credential file is not accessible" \
16431643
"$command REGISTRY_AUTH_FILE=nonexistent-path"
16441644

test/system/130-kill.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ load helpers
114114
run_podman run --rm -d --name $cname $IMAGE top
115115
run_podman kill $cname
116116
is "$output" $cname
117-
run_podman ? wait $cname
117+
run_podman '?' wait $cname
118118
}
119119

120120
# bats test_tags=ci:parallel

0 commit comments

Comments
 (0)