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