mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
clean_setup: create pause image
Workaround for #23292, where simultaneous 'pod create' commands will all start a podman-build of the pause image, but only one of them will be tagged, and the others will leak <none> images. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@@ -452,6 +452,17 @@ function clean_setup() {
|
||||
if [[ -z "$found_needed_image" ]]; then
|
||||
_prefetch $PODMAN_TEST_IMAGE_FQN
|
||||
fi
|
||||
|
||||
# When running in parallel, load (create, actually) the pause image.
|
||||
# This way, all pod tests will have it available. Without this,
|
||||
# parallel pod tests will leave behind <none>:<none> images.
|
||||
# FIXME: #23292 -- this should not be necessary.
|
||||
if [[ -n "$PARALLEL_JOBSLOT" ]]; then
|
||||
run_podman pod create mypod
|
||||
run_podman pod rm mypod
|
||||
# And now, we have a pause image, and each test does not
|
||||
# need to build their own.
|
||||
fi
|
||||
}
|
||||
|
||||
# END setup/teardown tools
|
||||
|
||||
Reference in New Issue
Block a user