From 7e8b5cdfcea3c5b5d20bf80fdc3f3b2cd1657406 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Wed, 29 Nov 2023 09:28:14 +0000 Subject: [PATCH] ftests/064: 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/064-sudo-systemd_cgset-v2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ftests/064-sudo-systemd_cgset-v2.py b/tests/ftests/064-sudo-systemd_cgset-v2.py index c42bc501..e3a63c77 100755 --- a/tests/ftests/064-sudo-systemd_cgset-v2.py +++ b/tests/ftests/064-sudo-systemd_cgset-v2.py @@ -38,6 +38,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