public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: exit the tests if their required services are missing
@ 2026-09-11 13:19 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:19 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : df22c3b60beedc937afff4a67a8f9c2a2f9faf7f
Author : Milos Malik <mmalik@redhat.com>
Date : 2022-01-12T11:43:03+01:00
Stats : +2/-3 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/df22c3b60beedc937afff4a67a8f9c2a2f9faf7f?branch=pr775-checkpolicy-revdeps
Log:
exit the tests if their required services are missing
Services like systemd-homed and systemd-userdbd are available on Fedora,
but they are not available on RHEL. It makes no sense to run their tests
in environments, where the services are not available. Without these
services being present the tests would fail.
---
diff --git a/selinux-policy/systemd-homed/runtest.sh b/selinux-policy/systemd-homed/runtest.sh
index 975bf39..3357cae 100755
--- a/selinux-policy/systemd-homed/runtest.sh
+++ b/selinux-policy/systemd-homed/runtest.sh
@@ -110,7 +110,7 @@ expect -f - <<<'
}
rlJournalStart
- if rlIsRHEL '<9' ; then
+ if [ ! -f /usr/lib/systemd/systemd-homed ] ; then
rlLog "Not applicable to this OS version."
rlJournalEnd
exit 0
diff --git a/selinux-policy/systemd-userdbd-and-similar/runtest.sh b/selinux-policy/systemd-userdbd-and-similar/runtest.sh
index f817604..8a439ea 100755
--- a/selinux-policy/systemd-userdbd-and-similar/runtest.sh
+++ b/selinux-policy/systemd-userdbd-and-similar/runtest.sh
@@ -42,8 +42,7 @@ 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
+ if [ ! -f /usr/lib/systemd/systemd-userdbd ] ; then
rlLog "Not applicable to this OS version."
rlJournalEnd
exit 0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:19 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:19 [tests/selinux] pr775-checkpolicy-revdeps: exit the tests if their required services are missing Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox