Actions
action #51230
opencoordination #51224: [qe-core][functional][epic] Unify code logic for systemd related functionality
[qe-core][functional] Unify all usages of systemctl
Status:
Blocked
Priority:
Normal
Assignee:
-
Category:
Enhancement to existing tests
Target version:
-
Start date:
2019-05-07
Due date:
% Done:
0%
Estimated time:
Difficulty:
Description
Motivation¶
In the code there are divergences about using the systemctl function defined in utils and the usage of script_run('systemctl...')
.
This ticket is about unifying this code logic to always use the test function systemctl instead of script_run
.
Acceptance criteria¶
- AC1: There is no module executing
script_run('systemctl ...')
- AC2: All usages of
script_run('systemctl ...')
are replaced tosystemctl('...')
- AC3: An RFC with an automated check is added to avoid introducing again, mixed syntax (see #96675 and it's acceptance criteria)
Further information¶
reg_exp_before = /^\s*\w*script_run[( ]['"]systemctl.*$/
reg_exp_after = /^\s*systemctl[( ]['"].*$/
Actions