Skip running the testcase, when compiled with --enable-systemd=no,
using Systemd.is_systemd_enabled().
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit
f784f734c9e0a6eb43c7283dce1afaae7f72769f)
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