You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cockpit-podman/SOURCES/cockpit-podman-1937863.patch

25 lines
956 B

From d4f06e0e0b9529bfa3d17c1ef73c028752ee1bb7 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin@piware.de>
Date: Thu, 4 Mar 2021 20:11:47 +0100
Subject: [PATCH] test: Generalize cgroupsV2() for all rhel-8-* versions
It looks like RHEL newer 8.y versions won't get cgroupsv2 either, so
generalize the check.
---
test/check-application | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/check-application b/test/check-application
index 0b163ce7..a40f2d90 100755
--- a/test/check-application
+++ b/test/check-application
@@ -80,7 +80,7 @@ class TestApplication(testlib.MachineCase):
self.has_selinux = self.machine.image not in ["debian-testing", "ubuntu-stable"]
def cgroupsV2(self):
- return self.machine.image not in ["ubuntu-stable", "rhel-8-4"]
+ return self.machine.image != 'ubuntu-stable' and not self.machine.image.startswith('rhel-8')
def execute(self, system, cmd):
if system: