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>
# Author: Tom Hromatka <tom.hromatka@oracle.com>
#
-from cgroup import Cgroup
from process import Process
+from systemd import Systemd
from libcgroup import Mode
+from cgroup import Cgroup
from run import RunError
from log import Log
import consts
result = consts.TEST_SKIPPED
cause = 'This test requires the unified cgroup hierarchy'
+ if not Systemd.is_systemd_enabled():
+ result = consts.TEST_SKIPPED
+ cause = 'Systemd support not compiled in'
+
return result, cause