test: Cleanup images before pulling the ones we need

This commit is contained in:
Matej Marusak 2020-11-05 11:39:35 +01:00
parent 5778509184
commit 4cef1ffec0

View File

@ -39,6 +39,9 @@ chown -R runtest "$SOURCE"
# disable core dumps, we rather investigate them upstream where test VMs are accessible
echo core > /proc/sys/kernel/core_pattern
# cleanup any images that are on the system
podman rmi -af
# pull images for system podman tests
podman pull docker.io/busybox
podman pull docker.io/alpine
@ -48,9 +51,10 @@ podman pull docker.io/registry:2
mkdir -p /etc/systemd/user/podman.service.d
printf '[Service]\nKillMode=\n' > /etc/systemd/user/podman.service.d/cleanup.conf
# pull images for user podman tests; podman insists on user session
# claenup and pull images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
sudo -i -u admin bash << EOF
podman rmi -af
podman pull docker.io/busybox
podman pull docker.io/alpine
podman pull docker.io/registry:2