Skip to content

Commit 14b68ba

Browse files
Merge pull request #27233 from Luap99/test-fix
test/system: two small fixes
2 parents 7f6bd39 + 3e774ee commit 14b68ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ 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+
# Wait for the container to get removed to avoid the leak check from triggering,
118+
# since it might have already been removed here ignore the exit code check.
119+
run_podman '?' wait --condition=removing $cname
118120
}
119121

120122
# bats test_tags=ci:parallel

0 commit comments

Comments
 (0)