This change also fixes the python tests to properly mock the path so our
stubs work if the command already exists on the system path.
Change-Id: I7c54b1d99e7cf6c4e3f4ded8c518bf447b2ba1de
fix pep8 syntax (H904 Wrap long lines in parentheses instead of a backslash).
fix two regressions in test_os_svc_daemon.py introduced by
Ibd491881d79160ad1457526d51512f5fc1cf9ea5:
- ensure os-svc-daemon won't try to write in /etc/os-logging by passing
the “-l” extra parameter.
- fix the test_standard_upstart test from test_os_svc_daemon.py to
match the expected outpout.
Change-Id: I113504947d126e9d91409f97f8291d5b8fc15c42
ensure the Python scripts in the doc and elements directories are PEP8
compliant.
test_os_svc_daemon.py test is fixed in another patch:
I9b1859f9fc5846c7c42606644231105618e1a1a0.
Change-Id: If5068ef77d6643c19de36bfcf4b4bf790f86b538
Since I6487d0726db08912eed3062dfee2552940eadcfb, a ExecStartPre call
is added in the systemd .service file.
This patch adjust test_os_svc_daemon.py.
For the record, the remaining PEP8 error is fixed in
If5068ef77d6643c19de36bfcf4b4bf790f86b538.
Change-Id: I9b1859f9fc5846c7c42606644231105618e1a1a0
Adds a set of unit tests for os-svc-daemon to verify the output
of running it with various options. Includes a base test class
with some convenience functions for testing scripts.
Change-Id: Id54291686d39ab1b9f0ce4848a2fcf3c18a9ea18