Merge pull request #7317 from edsantiago/bats

system tests: enable sdnotify tests
This commit is contained in:
OpenShift Merge Robot
2020-08-17 12:16:32 +02:00
committed by GitHub

View File

@ -12,8 +12,15 @@ _SOCAT_LOG=
function setup() { function setup() {
skip_if_remote skip_if_remote
# TODO: remove this once CI systems have newer crun and container-selinux # Skip if systemd is not running
skip "TEMPORARY SKIP - until CI systems get new crun, container-selinux" systemctl list-units &>/dev/null || skip "systemd not available"
# sdnotify fails with runc 1.0.0-3-dev2 on Ubuntu. Let's just
# assume that we work only with crun, nothing else.
run_podman info --format '{{ .Host.OCIRuntime.Name }}'
if [[ "$output" != "crun" ]]; then
skip "this test only works with crun, not '$output'"
fi
basic_setup basic_setup
} }
@ -107,7 +114,7 @@ function _assert_mainpid_is_conmon() {
@test "sdnotify : container" { @test "sdnotify : container" {
# Sigh... we need to pull a humongous image because it has systemd-notify. # Sigh... we need to pull a humongous image because it has systemd-notify.
# FIXME: is there a smaller image we could use? # FIXME: is there a smaller image we could use?
_FEDORA=registry.fedoraproject.org/fedora:latest _FEDORA=registry.fedoraproject.org/fedora:31
# Pull that image. Retry in case of flakes. # Pull that image. Retry in case of flakes.
run_podman pull $_FEDORA || \ run_podman pull $_FEDORA || \