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: fix few failing tests
Date: Fri, 11 Sep 2026 13:23:27 GMT [thread overview]
Message-ID: <178913300706.1.3073901716601858937.tests-selinux-4d5af50a2a53@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 4d5af50a2a53d3a26cc12c623145cd8059be6034
Author : Milos Malik <mmalik@redhat.com>
Date : 2025-11-24T08:29:41+01:00
Stats : +8/-5 in 4 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/4d5af50a2a53d3a26cc12c623145cd8059be6034?branch=pr775-checkpolicy-revdeps
Log:
fix few failing tests
Package installation attempts may fail, but the rest of test code
may still succeed. Expected exit codes were updated.
---
diff --git a/selinux-policy/dhclient-and-similar/runtest.sh b/selinux-policy/dhclient-and-similar/runtest.sh
index 1c681c1..247727e 100755
--- a/selinux-policy/dhclient-and-similar/runtest.sh
+++ b/selinux-policy/dhclient-and-similar/runtest.sh
@@ -74,12 +74,15 @@ rlJournalStart
if which dhclient >& /dev/null ; then
rlPhaseStartTest "real scenario"
rlRun "rm -rf /run/chrony-dhcp"
- rlRun "restorecon -Rv /run /var -e /var/ARTIFACTS" 0-255
+ rlRun "restorecon -Rv /etc /run /var -e /var/ARTIFACTS" 0-255
rlRun "dhclient"
DHCLIENT_PID=`pgrep dhclient`
rlRun "ps -efZ | grep dhclient"
rlRun "ps -efZ | grep ':dhcpc_t:.*dhclient'"
if ! rlIsRHEL 8 && ! rlIsCentOS 8 ; then
+ rlRun "grep CHRONY_SOURCEDIR /etc/dhcp/dhclient.d/chrony.sh"
+ rlRun "grep sourcedir /etc/chrony.conf"
+ sleep 5
rlRun "ls -alZ /run/chrony-dhcp"
fi
rlPhaseEnd
diff --git a/selinux-policy/iio-sensor-proxy-and-similar/runtest.sh b/selinux-policy/iio-sensor-proxy-and-similar/runtest.sh
index 224e218..804509f 100755
--- a/selinux-policy/iio-sensor-proxy-and-similar/runtest.sh
+++ b/selinux-policy/iio-sensor-proxy-and-similar/runtest.sh
@@ -84,7 +84,7 @@ rlJournalStart
rlRun "sed -i 's/^.*Environment=.*$/Environment=FAKE_LIGHT_SENSOR=1/' /etc/systemd/system/iio-sensor-proxy.service"
rlRun "systemctl daemon-reload"
rlSEService - ${SERVICE_NAME} ${PROCESS_NAME} ${PROCESS_CONTEXT} "restart status" 1
- rlRun "gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy"
+ rlRun "gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy" 0,1
rlWatchdog "monitor-sensor --all" 10
rlSEService - ${SERVICE_NAME} ${PROCESS_NAME} ${PROCESS_CONTEXT} "stop status" 1
rlPhaseEnd
diff --git a/selinux-policy/libvirt-dbus-and-similar/runtest.sh b/selinux-policy/libvirt-dbus-and-similar/runtest.sh
index d6907cb..e0d9a7d 100755
--- a/selinux-policy/libvirt-dbus-and-similar/runtest.sh
+++ b/selinux-policy/libvirt-dbus-and-similar/runtest.sh
@@ -52,7 +52,7 @@ rlJournalStart
rlAssertRpm ${SERVICE_PACKAGE}
rlServiceStop ${SERVICE_NAME}
- rlRun "yum -y install libvirt\* --skip-broken -x \*i686\* -x glibc32"
+ rlRun "yum -y install libvirt\* --skip-broken -x \*i686\* -x glibc32" 0,1
rlSESetEnforce
rlSEStatus
diff --git a/selinux-policy/systemd-rfkill-and-similar/runtest.sh b/selinux-policy/systemd-rfkill-and-similar/runtest.sh
index 793993a..b92186f 100755
--- a/selinux-policy/systemd-rfkill-and-similar/runtest.sh
+++ b/selinux-policy/systemd-rfkill-and-similar/runtest.sh
@@ -48,9 +48,9 @@ rlJournalStart
rlRun "rpm -qa kernel\*"
rlRun "uname -r"
if ! rlCheckRpm kernel-automotive ; then
- rlRun "yum -y install kernel-modules-`uname -r`"
+ rlRun "yum -y install kernel-modules-`uname -r`" 0,1
else
- rlRun "dnf -y install kernel-automotive-modules-`uname -r`"
+ rlRun "dnf -y install kernel-automotive-modules-`uname -r`" 0,1
fi
rlServiceStop ${SERVICE_NAME}
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=178913300706.1.3073901716601858937.tests-selinux-4d5af50a2a53@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