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