mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-19 13:50:11 +00:00
switching testinfra's Docker run from dash to bash
This commit is contained in:
parent
699e299345
commit
a5a067d50f
2 changed files with 15 additions and 2 deletions
|
@ -69,11 +69,10 @@ def test_configureFirewall_firewalld_no_errors(Pihole):
|
|||
''' confirms firewalld rules are applied when appopriate '''
|
||||
mock_command('firewall-cmd', '0', Pihole)
|
||||
configureFirewall = Pihole.run('''
|
||||
bash -c "
|
||||
PHTEST=TRUE
|
||||
source /opt/pihole/basic-install.sh
|
||||
configureFirewall
|
||||
" ''')
|
||||
''')
|
||||
expected_stdout = '::: Configuring firewalld for httpd and dnsmasq.'
|
||||
assert expected_stdout in configureFirewall.stdout
|
||||
firewall_calls = Pihole.run('cat /var/log/firewall-cmd').stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue