summaryrefslogtreecommitdiff
path: root/test/system/030-run.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-11-09 13:30:15 -0700
committerEd Santiago <santiago@redhat.com>2020-11-09 13:44:44 -0700
commitc62c64856e3495ca879b68b99e502070f8c58947 (patch)
tree18ce3ec749690a3be8a1d32086fbad9b1b70c62c /test/system/030-run.bats
parent8f33751b57f7a59b92f87dc8d88669bc13706097 (diff)
downloadpodman-c62c64856e3495ca879b68b99e502070f8c58947.tar.gz
podman-c62c64856e3495ca879b68b99e502070f8c58947.tar.bz2
podman-c62c64856e3495ca879b68b99e502070f8c58947.zip
system tests: skip journald tests on RHEL8
(actually, on any system exhibiting the symptom wherein journalctl fails due to insufficient permissions, which for all practical purposes means only RHEL8) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r--test/system/030-run.bats10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index b0c855d81..12df966e2 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -436,6 +436,16 @@ json-file | f
@test "podman run --log-driver journald" {
skip_if_remote "We cannot read journalctl over remote."
+ # We can't use journald on RHEL as rootless, either: rhbz#1895105
+ if is_rootless; then
+ run journalctl -n 1
+ if [[ $status -ne 0 ]]; then
+ if [[ $output =~ permission ]]; then
+ skip "Cannot use rootless journald on this system"
+ fi
+ fi
+ fi
+
msg=$(random_string 20)
pidfile="${PODMAN_TMPDIR}/$(random_string 20)"