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