From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:30:36 +0000 (+0000) Subject: ftests/065: skip test on non-systemd configuration X-Git-Tag: v3.2.0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf67be2d4abb177f02ee9a56b7e50be3eb20fe5;p=thirdparty%2Flibcgroup.git ftests/065: 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/065-sudo-systemd_cgclassify-v1.py b/tests/ftests/065-sudo-systemd_cgclassify-v1.py index 850c1362..a284ae0b 100755 --- a/tests/ftests/065-sudo-systemd_cgclassify-v1.py +++ b/tests/ftests/065-sudo-systemd_cgclassify-v1.py @@ -44,6 +44,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