Skip to content

Commit

Permalink
Merge pull request #20030 from edsantiago/bats_cleanup
Browse files Browse the repository at this point in the history
systests: manifest-zstd: clean up
  • Loading branch information
openshift-merge-robot authored Sep 19, 2023
2 parents 63219d6 + aec58f5 commit 57fbdc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/system/012-manifest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ EOF
local manifestlocal="test:1.0"
run_podman manifest create $manifestlocal
for arch in amd arm;do
# FIXME: --layers=false needed to work around #19860
# This leaves behind a <none>:<none> image that must be purged, below
run_podman build -t image_$arch --platform linux/${arch}64 -f $dockerfile
run_podman manifest add $manifestlocal containers-storage:localhost/image_$arch:latest
done
Expand All @@ -145,6 +145,9 @@ EOF

run_podman rmi image_amd image_arm
run_podman manifest rm $manifestlocal

# Needed because the above build leaves a dangling <none>
run_podman image prune -f
}

# vim: filetype=sh
1 change: 1 addition & 0 deletions test/system/710-kube.bats
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ status | = | null
run_podman kube down $KUBE
run_podman pod rm -a
run_podman rm -a
run_podman rmi $(pause_image)
}

@test "podman kube generate - pod" {
Expand Down
2 changes: 1 addition & 1 deletion test/system/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function run_podman() {
MOST_RECENT_PODMAN_COMMAND="podman $*"

# stdout is only emitted upon error; this printf is to help in debugging
printf "\n%s %s %s\n" "$(timestamp)" "$_LOG_PROMPT" "$*"
printf "\n%s %s %s %s\n" "$(timestamp)" "$_LOG_PROMPT" "$PODMAN" "$*"
# BATS hangs if a subprocess remains and keeps FD 3 open; this happens
# if podman crashes unexpectedly without cleaning up subprocesses.
run timeout --foreground -v --kill=10 $PODMAN_TIMEOUT $PODMAN $_PODMAN_TEST_OPTS "$@" 3>/dev/null
Expand Down

0 comments on commit 57fbdc1

Please sign in to comment.