public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: skip systemd-userdbd test on RHEL-8
@ 2026-09-11 13:18 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 06c47e669ee02ebac2b70f6d0822e7ccaac46b00
Author : Milos Malik <mmalik@redhat.com>
Date : 2020-11-02T08:22:58+00:00
Stats : +10/-0 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/06c47e669ee02ebac2b70f6d0822e7ccaac46b00?branch=pr775-checkpolicy-revdeps
Log:
skip systemd-userdbd test on RHEL-8
It makes no sense to run this TC on RHEL-8.x or lower RHELs, because
the systemd-userdbd service is not available there. As soon as the
service becomes available in these environments, the TC can be enabled.
---
diff --git a/selinux-policy/systemd-userdbd-and-similar/main.fmf b/selinux-policy/systemd-userdbd-and-similar/main.fmf
index 4b73bfc..23213c1 100644
--- a/selinux-policy/systemd-userdbd-and-similar/main.fmf
+++ b/selinux-policy/systemd-userdbd-and-similar/main.fmf
@@ -1,2 +1,5 @@
path: /selinux-policy/systemd-userdbd-and-similar
tier: 2
+relevancy:
+- "distro <= rhel-8: False"
+
diff --git a/selinux-policy/systemd-userdbd-and-similar/runtest.sh b/selinux-policy/systemd-userdbd-and-similar/runtest.sh
index 1301c95..9fba8c9 100755
--- a/selinux-policy/systemd-userdbd-and-similar/runtest.sh
+++ b/selinux-policy/systemd-userdbd-and-similar/runtest.sh
@@ -42,6 +42,13 @@ ALLOWED_USERS=${ALLOWED_USERS:-"staff_u user_u guest_u xguest_u sysadm_u unconfi
DENIED_USERS=${DENIED_USERS:-""}
rlJournalStart
+ # the systemd-userdbd service is not available on RHEL-8
+ if rlIsRHEL 8 ; then
+ rlLog "Not applicable to this OS version."
+ rlJournalEnd
+ exit 0
+ fi
+
rlPhaseStartSetup
rlRun "rlImport 'selinux-policy/common'"
rlSESatisfyRequires
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:18 [tests/selinux] pr775-checkpolicy-revdeps: skip systemd-userdbd test on RHEL-8 Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox