mirror of https://github.com/containers/podman.git
Merge pull request #24264 from edsantiago/try-try-again
CI: fix changing-rootFsSize flake
This commit is contained in:
commit
a2eb5429b3
|
@ -355,7 +355,15 @@ EOF
|
|||
local cname=c-$1-$(safename)
|
||||
t0=$(date --iso-8601=seconds)
|
||||
|
||||
CONTAINERS_CONF_OVERRIDE=$containersConf run_podman create --name=$cname $IMAGE
|
||||
# Create a base image, airgapped from $IMAGE so this test is
|
||||
# isolated from tag/label changes.
|
||||
baseimage=i-$1-$(safename)
|
||||
run_podman create -q $IMAGE true
|
||||
local tmpcid=$output
|
||||
run_podman commit -q $tmpcid $baseimage
|
||||
run_podman rm $tmpcid
|
||||
|
||||
CONTAINERS_CONF_OVERRIDE=$containersConf run_podman create --name=$cname $baseimage
|
||||
CONTAINERS_CONF_OVERRIDE=$containersConf run_podman container inspect --size=true $cname
|
||||
inspect_json=$(jq -r --tab . <<< "$output")
|
||||
|
||||
|
@ -379,6 +387,7 @@ EOF
|
|||
assert "$output" != ".*EffectiveCaps.*"
|
||||
|
||||
run_podman rm $cname
|
||||
run_podman rmi $baseimage
|
||||
}
|
||||
|
||||
# bats test_tags=ci:parallel
|
||||
|
|
|
@ -1140,10 +1140,10 @@ EOF
|
|||
# Generate a test image and push it to the registry.
|
||||
# For safety in parallel runs, test image must be isolated
|
||||
# from $IMAGE. A simple add-tag will not work. (#23756)
|
||||
tmpcname=c-tmp-$(safename)
|
||||
run_podman run --name $tmpcname $IMAGE true
|
||||
run_podman commit -q $tmpcname $image_for_test
|
||||
run_podman rm $tmpcname
|
||||
run_podman create -q $IMAGE true
|
||||
local tmpcid=$output
|
||||
run_podman commit -q $tmpcid $image_for_test
|
||||
run_podman rm $tmpcid
|
||||
run_podman image push --tls-verify=false --authfile=$authfile $image_for_test
|
||||
|
||||
# Remove the local image to make sure it will be pulled again
|
||||
|
@ -1440,10 +1440,10 @@ EOF
|
|||
# Generate a test image, save it into a file, and remove it.
|
||||
# For safety in parallel runs, test image must be isolated
|
||||
# from $IMAGE. A simple add-tag will not work. (#23756)
|
||||
tmpcname=c-tmp-$(safename)
|
||||
run_podman run --name $tmpcname $IMAGE true
|
||||
run_podman commit -q $tmpcname $image_for_test
|
||||
run_podman rm $tmpcname
|
||||
run_podman create -q $IMAGE true
|
||||
local tmpcid=$output
|
||||
run_podman commit -q $tmpcid $image_for_test
|
||||
run_podman rm $tmpcid
|
||||
run_podman image save --format docker-archive --output $archive_file $image_for_test
|
||||
run_podman image rm $image_for_test
|
||||
|
||||
|
|
Loading…
Reference in New Issue