public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: detect the package after the program is installed
Date: Fri, 11 Sep 2026 13:20:38 GMT [thread overview]
Message-ID: <178913283819.1.14890249736626861097.tests-selinux-7f42d251573f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 7f42d251573fb7772f6ad6fa144a1da553670368
Author : Milos Malik <mmalik@redhat.com>
Date : 2023-04-22T11:37:48+00:00
Stats : +2/-2 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/7f42d251573fb7772f6ad6fa144a1da553670368?branch=pr775-checkpolicy-revdeps
Log:
detect the package after the program is installed
Packages which belong to non-usual repositories may be installed
during the Setup phase, but not sooner because the framework running
the tests does not know the repositories. It makes no sense to run
the following command before the program is installed:
* rpm -qf /path/to/program
All the required packages should be installed after finish of the
rlSESatisfyRequires function.
---
diff --git a/selinux-policy/cups-browsed-and-similar/runtest.sh b/selinux-policy/cups-browsed-and-similar/runtest.sh
index bba6a10..261eec8 100755
--- a/selinux-policy/cups-browsed-and-similar/runtest.sh
+++ b/selinux-policy/cups-browsed-and-similar/runtest.sh
@@ -33,7 +33,6 @@ PACKAGE="selinux-policy"
ROOT_PASSWORD="redhat"
FILE_PATH="/usr/sbin/cups-browsed"
FILE_CONTEXT="cupsd_exec_t"
-SERVICE_PACKAGE=`rpm -qf /usr/sbin/cups-browsed`
SERVICE_NAME="cups-browsed"
PROCESS_NAME="cups-browsed"
PROCESS_CONTEXT="cupsd_t"
@@ -42,6 +41,7 @@ rlJournalStart
rlPhaseStartSetup
rlRun "rlImport 'selinux-policy/common'"
rlSESatisfyRequires
+ SERVICE_PACKAGE=`rpm -qf ${FILE_PATH}`
rlAssertRpm ${PACKAGE}
rlAssertRpm ${PACKAGE}-targeted
rlAssertRpm ${SERVICE_PACKAGE}
diff --git a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
index 46d6731..4e26325 100755
--- a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
+++ b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
@@ -33,7 +33,6 @@ PACKAGE="selinux-policy"
ROOT_PASSWORD="redhat"
FILE_PATH="/usr/lib/systemd/systemd-timesyncd"
FILE_CONTEXT="systemd_timedated_exec_t"
-SERVICE_PACKAGE=`rpm -qf ${FILE_PATH}`
SERVICE_NAME="systemd-timesyncd"
PROCESS_NAME="systemd-timesyncd"
PROCESS_CONTEXT="systemd_timedated_t"
@@ -42,6 +41,7 @@ rlJournalStart
rlPhaseStartSetup
rlRun "rlImport 'selinux-policy/common'"
rlSESatisfyRequires
+ SERVICE_PACKAGE=`rpm -qf ${FILE_PATH}`
rlAssertRpm ${PACKAGE}
rlAssertRpm ${PACKAGE}-targeted
rlAssertRpm ${SERVICE_PACKAGE}
reply other threads:[~2026-09-11 13:20 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=178913283819.1.14890249736626861097.tests-selinux-7f42d251573f@fedoraproject.org \
--to=mmalik@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