quadlet tests: skip on RHEL8 rootless

skip in setup() if journald unavailable.

To be pedantic, this is overkill: some quadlet tests pass
because they don't run journald. Too bad.

Also skip a play-kube test that requires journal

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago
2023-03-21 07:07:40 -06:00
parent 74c5a013cb
commit cf5df5b805
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ function start_time() {
function setup() { function setup() {
skip_if_remote "quadlet tests are meaningless over remote" skip_if_remote "quadlet tests are meaningless over remote"
skip_if_rootless_cgroupsv1 "Can't use --cgroups=split w/ CGv1 (#17456)" skip_if_rootless_cgroupsv1 "Can't use --cgroups=split w/ CGv1 (#17456)"
skip_if_journald_unavailable "quadlet isn't really usable without journal"
test -x "$QUADLET" || die "Cannot run quadlet tests without executable \$QUADLET ($QUADLET)" test -x "$QUADLET" || die "Cannot run quadlet tests without executable \$QUADLET ($QUADLET)"

View File

@ -250,6 +250,8 @@ READY=1" "sdnotify sent MAINPID and READY"
} }
@test "sdnotify : play kube - with policies" { @test "sdnotify : play kube - with policies" {
skip_if_journald_unavailable
# Pull that image. Retry in case of flakes. # Pull that image. Retry in case of flakes.
run_podman pull $SYSTEMD_IMAGE || \ run_podman pull $SYSTEMD_IMAGE || \
run_podman pull $SYSTEMD_IMAGE || \ run_podman pull $SYSTEMD_IMAGE || \