HomeClusterLabs Projects

Test: cts: service counts as enabled only if it's explicitly enabled

Description

Test: cts: service counts as enabled only if it's explicitly enabled

With "systemctl is-enabled", we should check if the service is
explicitly "enabled" instead of the return code. For example it returns
0 if the service is "static" or "indirect", but they don't really count
as "enabled".

This also functionizes the check part for further use.

Details

Provenance
gao-yanAuthored on Jan 18 2019, 11:02 AM
Parents
rP750c5bd018b0: Merge pull request #1663 from gao-yan/cts-exec-tests-without-python-systemd
Branches
Unknown
Tags
Unknown

Event Timeline