public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: detect the package after the program is installed
@ 2026-09-11 13:20 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:20 UTC (permalink / raw)
To: git-commits
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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:20 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:20 [tests/selinux] pr775-checkpolicy-revdeps: detect the package after the program is installed Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox