Skip to content

Commit

Permalink
quadlet tests: skip on RHEL8 rootless
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
edsantiago committed Mar 21, 2023
1 parent 74c5a01 commit cf5df5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/system/252-quadlet.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function start_time() {
function setup() {
skip_if_remote "quadlet tests are meaningless over remote"
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)"

Expand Down
2 changes: 2 additions & 0 deletions test/system/260-sdnotify.bats
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ READY=1" "sdnotify sent MAINPID and READY"
}

@test "sdnotify : play kube - with policies" {
skip_if_journald_unavailable

# Pull that image. Retry in case of flakes.
run_podman pull $SYSTEMD_IMAGE || \
run_podman pull $SYSTEMD_IMAGE || \
Expand Down

0 comments on commit cf5df5b

Please sign in to comment.