]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/049: skip test on non-systemd configuration
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 29 Nov 2023 09:08:14 +0000 (09:08 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 7 Dec 2023 15:58:13 +0000 (08:58 -0700)
Skip running the testcase, when compiled with --enable-systemd=no,
using Systemd.is_systemd_enabled().

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/049-sudo-systemd_create_scope.py

index df14edc59e016205439eb3ee877f1bd009d50c82..95a67c21afa7fc6b95050d64b3097f8bca481121 100755 (executable)
@@ -39,6 +39,10 @@ def prereqs(config):
         result = consts.TEST_SKIPPED
         cause = 'This test requires cgroup v2'
 
+    if not Systemd.is_systemd_enabled():
+        result = consts.TEST_SKIPPED
+        cause = 'Systemd support not compiled in'
+
     return result, cause