From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:25:55 +0000 (+0000) Subject: ftests/062: skip test on non-systemd configuration X-Git-Tag: v3.2.0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227120e8b9b88f0a187273ebf3e2b3d75bd3d9dc;p=thirdparty%2Flibcgroup.git ftests/062: skip test on non-systemd configuration Skip running the testcase, when compiled with --enable-systemd=no, using Systemd.is_systemd_enabled(). Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/tests/ftests/062-sudo-g_flag_controller_only_systemd-v2.py b/tests/ftests/062-sudo-g_flag_controller_only_systemd-v2.py index e77eb6aa..bcd6301b 100755 --- a/tests/ftests/062-sudo-g_flag_controller_only_systemd-v2.py +++ b/tests/ftests/062-sudo-g_flag_controller_only_systemd-v2.py @@ -38,6 +38,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