From 4cef1ffec07e15edf503f443763005c41084802b Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Thu, 5 Nov 2020 11:39:35 +0100 Subject: [PATCH] test: Cleanup images before pulling the ones we need --- tests/browser.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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