From a4fba38e778e9419af9d2050151f9cf8531007b7 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:31:33 +0000 Subject: [PATCH] ftests/066: 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 --- tests/ftests/066-sudo-systemd_cgclassify-v2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ftests/066-sudo-systemd_cgclassify-v2.py b/tests/ftests/066-sudo-systemd_cgclassify-v2.py index 9f0fd3de..3e79e2e0 100755 --- a/tests/ftests/066-sudo-systemd_cgclassify-v2.py +++ b/tests/ftests/066-sudo-systemd_cgclassify-v2.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 -- 2.47.2