summaryrefslogtreecommitdiff
path: root/test/system/035-logs.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/035-logs.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/035-logs.bats')
-rw-r--r--test/system/035-logs.bats10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/035-logs.bats b/test/system/035-logs.bats
index 130bc5243..a3d6a5800 100644
--- a/test/system/035-logs.bats
+++ b/test/system/035-logs.bats
@@ -51,6 +51,16 @@ ${cid[0]} d" "Sequential output from logs"
}
@test "podman logs over journald" {
+ # We can't use journald on RHEL as rootless: 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)
run_podman run --name myctr --log-driver journald $IMAGE echo $msg