]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/069: skip test on non-systemd configuration
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 29 Nov 2023 09:34:24 +0000 (09:34 +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/069-sudo-systemd_cgxget-cpu-settings-v1.py

index 4faa507ff472be2926a8483cf2ea50a97b1d90de..6f0d85bcba6a61f948a0e8b225838d6620b5bd68 100755 (executable)
@@ -75,6 +75,10 @@ def prereqs(config):
         result = consts.TEST_SKIPPED
         cause = 'This test cannot be run within a container'
 
+    if not Systemd.is_systemd_enabled():
+        result = consts.TEST_SKIPPED
+        cause = 'Systemd support not compiled in'
+
     return result, cause