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: avoid testing empty CIL modules
Date: Fri, 11 Sep 2026 13:20:00 GMT [thread overview]
Message-ID: <178913280095.1.15479048797656246049.tests-selinux-12dd91c7d4b7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 12dd91c7d4b723a91eebcde12f8d61c550b63e45
Author : Zdenek Pytela <zpytela@redhat.com>
Date : 2022-06-07T15:43:51+00:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/12dd91c7d4b723a91eebcde12f8d61c550b63e45?branch=pr775-checkpolicy-revdeps
Log:
avoid testing empty CIL modules
SELinux user-space version 3.3 and higher does not support loading
of empty CIL modules. If such version is installed, one of the test
phases will be skipped. This commit changes existing code to using
rlTestVersion.
---
diff --git a/policycoreutils/CIL-modules-without-compilation/runtest.sh b/policycoreutils/CIL-modules-without-compilation/runtest.sh
index 8e96081..f47e67f 100755
--- a/policycoreutils/CIL-modules-without-compilation/runtest.sh
+++ b/policycoreutils/CIL-modules-without-compilation/runtest.sh
@@ -41,7 +41,7 @@ rlJournalStart
rlPhaseEnd
# version 3.3 of SELinux user-space does not accept empty CIL module
- if echo "${PACKAGE_VERSION} < 3.3" | bc | grep -q 1 ; then
+ if rlTestVersion "${PACKAGE_VERSION}" "<" "3.3" ; then
rlPhaseStartTest "empty CIL module"
rlRun "semodule -lfull | grep '400.*empty.*cil'" 1
rlRun "semodule -i empty.cil"
next reply other threads:[~2026-09-11 13:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 13:20 Zdenek Pytela [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-11 13:19 [tests/selinux] pr775-checkpolicy-revdeps: avoid testing empty CIL modules Milos Malik
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=178913280095.1.15479048797656246049.tests-selinux-12dd91c7d4b7@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