Skip to content

Commit

Permalink
auto-update systemd test: skip on RHEL
Browse files Browse the repository at this point in the history
The "auto-update using systemd" test is failing on RHEL rootless.

Reason: it uses journalctl, which does not work on RHEL rootless.

Solution: add skip_if_journald_unavailable.

ALSO: add debugging info to test failure.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Sep 2, 2021
1 parent 4699004 commit 02a0d4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/system/255-auto-update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ EOF
}

@test "podman auto-update using systemd" {
skip_if_journald_unavailable

generate_service alpine image

cat >$UNIT_DIR/podman-auto-update-$cname.timer <<EOF
Expand Down Expand Up @@ -386,7 +388,9 @@ EOF
done

if [[ -n "$failed_start" ]]; then
die "Did not find expected string '$expect' in journalctl output for $cname"
echo "journalctl output:"
sed -e 's/^/ /' <<<"$output"
die "Did not find expected string '$expect' in journalctl output for $cname"
fi

_confirm_update $cname $ori_image
Expand Down

0 comments on commit 02a0d4b

Please sign in to comment.