From 20d5bb60c30d634894b9718276455a128feeb584 Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Jan 07 2021 08:35:07 +0000 Subject: Merge #13 `test: Cleanup images before pulling the ones we need` --- diff --git a/tests/browser.sh b/tests/browser.sh index bd04aea..a85dfdb 100755 --- a/tests/browser.sh +++ b/tests/browser.sh @@ -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