Skip to content

Commit

Permalink
test: Disable SELinux when RHEL-49567 is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Aug 13, 2024
1 parent 56136c3 commit db60f61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/machineslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db60f61

Please sign in to comment.