public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Pytela <zpytela@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: systemd-generators test: do not execute test for 2 generators
Date: Fri, 11 Sep 2026 13:23:42 GMT [thread overview]
Message-ID: <178913302264.1.74237886766601816.tests-selinux-0badb50946d3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 0badb50946d3a0f6e777037f6444efa1c6c3cf13
Author : Zdenek Pytela <zpytela@redhat.com>
Date : 2026-04-13T08:02:25+00:00
Stats : +4/-0 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/0badb50946d3a0f6e777037f6444efa1c6c3cf13?branch=pr775-checkpolicy-revdeps
Log:
systemd-generators test: do not execute test for 2 generators
Since systemd v260 [1], support for System V service scripts has been
removed. As a part of this change, systemd-rc-local-generator and
systemd-sysv-generator were also removed.
This commit makes the relevant test parts run only if the generators
executables exist.
[1] https://github.com/systemd/systemd/releases/tag/v260-rc1
---
diff --git a/selinux-policy/systemd-generators/runtest.sh b/selinux-policy/systemd-generators/runtest.sh
index 0deeac8..e6a2405 100755
--- a/selinux-policy/systemd-generators/runtest.sh
+++ b/selinux-policy/systemd-generators/runtest.sh
@@ -165,6 +165,7 @@ rlJournalStart
# the generator just creates
# /run/systemd/generator/multi-user.target.wants/rc-local.service symlink
rlPhaseStartTest "systemd-rc-local-generator"
+ if [ -x /usr/lib/systemd/system-generators/systemd-rc-local-generator ]; then
cat > /etc/rc.d/rc.local << EOF
#!/bin/bash
echo "This is a script to check rc-local generator."
@@ -177,6 +178,7 @@ EOF
rlRun "systemctl start rc-local.service"
rlRun "systemctl status rc-local.service"
rlRun "systemctl stop rc-local.service"
+ fi
rlPhaseEnd
### sysv-generator
@@ -184,6 +186,7 @@ EOF
# for SysV init[1] scripts in /etc/init.d/* at boot and when configuration
# of the system manager is reloaded.
rlPhaseStartTest "systemd-sysv-generator"
+ if [ -x /usr/lib/systemd/system-generators/systemd-sysv-generator ]; then
cat > /etc/rc.d/init.d/sysv-generator-test.sh << EOF
#!/bin/bash
echo "This is a script to check sysv generator."
@@ -196,6 +199,7 @@ EOF
rlRun "systemctl start sysv-generator-test.service"
rlRun "systemctl status sysv-generator-test.service"
rlRun "systemctl stop sysv-generator-test.service"
+ fi
rlPhaseEnd
if rlIsCentOS 10 || rlIsRHEL 10 ; then
reply other threads:[~2026-09-11 13:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178913302264.1.74237886766601816.tests-selinux-0badb50946d3@fedoraproject.org \
--to=zpytela@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox