From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:08:14 +0000 (+0000) Subject: ftests/049: skip test on non-systemd configuration X-Git-Tag: v3.2.0~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c5d8d20db55ca2a46fcf0fa6dae8fef94598000;p=thirdparty%2Flibcgroup.git ftests/049: 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/049-sudo-systemd_create_scope.py b/tests/ftests/049-sudo-systemd_create_scope.py index df14edc5..95a67c21 100755 --- a/tests/ftests/049-sudo-systemd_create_scope.py +++ b/tests/ftests/049-sudo-systemd_create_scope.py @@ -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