public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: sestatus has been moved to /usr/bin on modern systems
@ 2026-09-11 13:22 Petr Lautrbach
  0 siblings, 0 replies; only message in thread
From: Petr Lautrbach @ 2026-09-11 13:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 512ac533f6d3b255359448fcd3a763683a60865c
            Author : Petr Lautrbach <lautrbach@redhat.com>
            Date   : 2025-01-22T15:18:19+01:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/512ac533f6d3b255359448fcd3a763683a60865c?branch=pr775-checkpolicy-revdeps

            Log:
            sestatus has been moved to /usr/bin on modern systems

https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Fixes:
    [   FAIL   ] :: Command 'rpm -ql policycoreutils | grep /usr/sbin/sestatus' (Expected 0, got 1)

---
diff --git a/policycoreutils/sestatus/runtest.sh b/policycoreutils/sestatus/runtest.sh
index c8c73d2..ebc56b2 100755
--- a/policycoreutils/sestatus/runtest.sh
+++ b/policycoreutils/sestatus/runtest.sh
@@ -94,7 +94,7 @@ rlJournalStart
     # This bug is not worth fixing in RHEL-5
     if ! rlIsRHEL 5 ; then
     rlPhaseStartTest
-        rlRun "rpm -ql ${PACKAGE} | grep /usr/sbin/sestatus"
+        rlRun "rpm -ql ${PACKAGE} | grep -E '/usr/s?bin/sestatus'"
         rlRun "rpm -ql ${PACKAGE} | grep /usr/share/man/man8/sestatus.8"
         for OPTION in b v ; do
             rlRun "sestatus --help 2>&1 | grep -- -${OPTION}"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:22 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:22 [tests/selinux] pr775-checkpolicy-revdeps: sestatus has been moved to /usr/bin on modern systems Petr Lautrbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox