does this work any better

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2019-02-14 19:55:14 -06:00
parent f0e2d705dc
commit 5f36094b21
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ def test_DNS_Envs_are_secondary_to_setupvars(Docker, Slow, args_env, expected_st
dns_count = 1
setupVars = '/etc/pihole/setupVars.conf'
Docker.run('sed -i "/^PIHOLE_DNS/ d" {}'.format(setupVars))
Docker.run('echo "PIHOLE_DNS_1={}" >> {}'.format(dns1, setupVars))
Docker.run('echo "PIHOLE_DNS_1={}" | tee -a {}'.format(dns1, setupVars))
if dns2:
Docker.run('echo "PIHOLE_DNS_2={}" >> {}'.format(dns2, setupVars))
Docker.run('echo "PIHOLE_DNS_2={}" | tee -a {}'.format(dns2, setupVars))
Slow(lambda: 'PIHOLE_DNS' in Docker.run('cat {}'.format(setupVars)).stdout)
# When we run setup dnsmasq during startup of the container