From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:19:10 +0000 (+0000) Subject: ftests/058: skip test on non-systemd configuration X-Git-Tag: v3.2.0~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb0265cce8f9d5d124834c08121fb9fff733dbca;p=thirdparty%2Flibcgroup.git ftests/058: 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/058-sudo-systemd_create_scope2.py b/tests/ftests/058-sudo-systemd_create_scope2.py index 751a221d..05c03fed 100755 --- a/tests/ftests/058-sudo-systemd_create_scope2.py +++ b/tests/ftests/058-sudo-systemd_create_scope2.py @@ -53,6 +53,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