Check file path and permissions in one go.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-02-20 18:15:40 -08:00
parent 4cd598ae10
commit 02ea9b9abc
No known key found for this signature in database
GPG Key ID: 572E999E385B7BFC
1 changed files with 3 additions and 3 deletions

View File

@ -398,9 +398,9 @@ def test_FTL_support_files_installed(Pihole):
stat -c '%a %n' /run/pihole-FTL.pid
ls -lac /run
''')
assert '644 pihole-FTL.port' in support_files.stdout
assert '644 pihole-FTL.pid' in support_files.stdout
assert '644 pihole-FTL.log' in support_files.stdout
assert '644 /run/pihole-FTL.port' in support_files.stdout
assert '644 /run/pihole-FTL.pid' in support_files.stdout
assert '644 /var/log/pihole-FTL.log' in support_files.stdout
# Helper functions
def mock_command(script, args, container):