test: Sync up browser.sh with upstream tests
This commit is contained in:
parent
d1e85603ad
commit
a54f341f46
@ -39,26 +39,17 @@ 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
|
||||
# grab a few images to play with; tests run offline, so they cannot download images
|
||||
podman rmi --all
|
||||
podman pull quay.io/libpod/busybox
|
||||
podman pull quay.io/libpod/alpine
|
||||
podman pull quay.io/cockpit/registry:2
|
||||
|
||||
# pull images for system podman tests
|
||||
podman pull docker.io/busybox
|
||||
podman pull docker.io/alpine
|
||||
podman pull docker.io/registry:2
|
||||
|
||||
# HACK: avoid leftover user podman processes between login sessions: https://github.com/containers/podman/issues/7021
|
||||
mkdir -p /etc/systemd/user/podman.service.d
|
||||
printf '[Service]\nKillMode=\n' > /etc/systemd/user/podman.service.d/cleanup.conf
|
||||
|
||||
# claenup and pull images for user podman tests; podman insists on user session
|
||||
# copy 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
|
||||
EOF
|
||||
for img in quay.io/libpod/busybox quay.io/libpod/alpine quay.io/cockpit/registry:2; do
|
||||
podman save $img | sudo -i -u admin podman load
|
||||
done
|
||||
loginctl disable-linger $(id -u admin)
|
||||
|
||||
systemctl enable --now cockpit.socket podman.socket
|
||||
|
Loading…
Reference in New Issue
Block a user