From db60f61095b16059d5384f0ababd62f41af21c3f Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Mon, 12 Aug 2024 15:51:15 +0300 Subject: [PATCH] test: Disable SELinux when RHEL-49567 is present --- test/machineslib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/machineslib.py b/test/machineslib.py index 0a291b631..6c377c821 100644 --- a/test/machineslib.py +++ b/test/machineslib.py @@ -387,6 +387,10 @@ def setUp(self): if not hasMonolithicDaemon(m.image): self.addCleanup(m.execute, "systemctl stop virtstoraged.service virtnetworkd.service") + # HACK: https://issues.redhat.com/browse/RHEL-49567 + for mach in self.machines.values(): + mach.execute('if test "$(rpmquery selinux-policy)" = selinux-policy-40.13.6-1.el10.noarch; then setenforce 0; fi') + def stop_all(): # domains # this is a race condition: a test may leave a domain shutting down, so it may go away while iterating