Check file path and permissions in one go.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
@ -398,9 +398,9 @@ def test_FTL_support_files_installed(Pihole):
|
|||||||
stat -c '%a %n' /run/pihole-FTL.pid
|
stat -c '%a %n' /run/pihole-FTL.pid
|
||||||
ls -lac /run
|
ls -lac /run
|
||||||
''')
|
''')
|
||||||
assert '644 pihole-FTL.port' in support_files.stdout
|
assert '644 /run/pihole-FTL.port' in support_files.stdout
|
||||||
assert '644 pihole-FTL.pid' in support_files.stdout
|
assert '644 /run/pihole-FTL.pid' in support_files.stdout
|
||||||
assert '644 pihole-FTL.log' in support_files.stdout
|
assert '644 /var/log/pihole-FTL.log' in support_files.stdout
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
def mock_command(script, args, container):
|
def mock_command(script, args, container):
|
||||||
|
Reference in New Issue
Block a user