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