summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-09-02 12:28:51 -0600
committerEd Santiago <santiago@redhat.com>2021-09-02 12:28:51 -0600
commit02a0d4b7fb8fe99d012e9c8035a063e903eab5b6 (patch)
tree939d4889ea8fa21c89236e7722fbdafee28ff04f
parent469900406ac51332785455bc8668bd1c053badd6 (diff)
downloadpodman-02a0d4b7fb8fe99d012e9c8035a063e903eab5b6.tar.gz
podman-02a0d4b7fb8fe99d012e9c8035a063e903eab5b6.tar.bz2
podman-02a0d4b7fb8fe99d012e9c8035a063e903eab5b6.zip
auto-update systemd test: skip on RHEL
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 <santiago@redhat.com>
-rw-r--r--test/system/255-auto-update.bats6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/system/255-auto-update.bats b/test/system/255-auto-update.bats
index b172bb917..bb4b5c13f 100644
--- a/test/system/255-auto-update.bats
+++ b/test/system/255-auto-update.bats
@@ -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
@@ -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