tests: Run more upstream integration tests

This requires a workaround for podman.service leaking processes on
shutdown: https://github.com/containers/podman/issues/7021

Some tests don't work in dist-git gating CI environment yet:
testNotRunning, testRunImageSystem, testRunImageUser

Also don't use run-tests yet, this requires
https://github.com/cockpit-project/cockpit-podman/pull/437
This commit is contained in:
Martin Pitt 2020-07-14 21:31:34 +02:00
parent 124190644b
commit 2957a067ee
2 changed files with 6 additions and 1 deletions

View File

@ -44,6 +44,10 @@ 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
# pull images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
sudo -i -u admin bash << EOF

View File

@ -14,7 +14,8 @@ export TEST_OS="${ID}-${VERSION_ID/./-}"
export TEST_AUDIT_NO_SELINUX=1
RC=0
test/check-application -tv --machine 127.0.0.1:22 --browser 127.0.0.1:9090 TestApplication.testBasicSystem || RC=$?
test/check-application -tv --machine 127.0.0.1:22 --browser 127.0.0.1:9090 \
TestApplication.test{BasicSystem,BasicUser,DownloadImage,LifecycleOperationsUser,LifecycleOperationsSystem} || RC=$?
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true