From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:43:48 +0000 (+0000) Subject: ftests/086: skip test on non-systemd configuration X-Git-Tag: v3.2.0~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=facad4ea6259a27c0e47cf6c30f622b8bbb0117f;p=thirdparty%2Flibcgroup.git ftests/086: 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/086-sudo-systemd_cmdline_example.py b/tests/ftests/086-sudo-systemd_cmdline_example.py index 801027d5..23dc0c94 100755 --- a/tests/ftests/086-sudo-systemd_cmdline_example.py +++ b/tests/ftests/086-sudo-systemd_cmdline_example.py @@ -44,6 +44,10 @@ def prereqs(config): result = consts.TEST_SKIPPED cause = 'This test requires the unified cgroup hierarchy' + if not Systemd.is_systemd_enabled(): + result = consts.TEST_SKIPPED + cause = 'Systemd support not compiled in' + return result, cause