summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-29 13:18:31 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:20:42 -0400
commit997c3d6aaee429b6fda2294c1465319f4dc434bc (patch)
tree6fd34128fbb5860e41c24a931fceb02f138d0204
parentbaf14c76a3cc083283e2fc7d981b02d38e4569c2 (diff)
[tests] apply dns workaround for functional tests
-rw-r--r--tests/functional/features/steps/vpn.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/functional/features/steps/vpn.py b/tests/functional/features/steps/vpn.py
index 020ac7c..489d423 100644
--- a/tests/functional/features/steps/vpn.py
+++ b/tests/functional/features/steps/vpn.py
@@ -21,14 +21,17 @@ def apply_dns_workaround():
global resolv
resolv = commands.getoutput('cat /etc/resolv.conf')
print("original resolv.conf: %s" % resolv)
- commands.getoutput('echo nameserver 10.42.0.1 > /etc/ressolv.conf')
+ result = commands.getoutput(
+ 'echo "nameserver 10.42.0.1" > /etc/resolv.conf')
resolv2 = commands.getoutput('cat /etc/resolv.conf')
print("changed resolv.conf: %s" % resolv2)
+ print("Workaround OK")
def deapply_dns_workaround():
if os.getuid() == 0:
- commands.getoutput('echo nameserver 85.214.20.141 > /etc/resolv.conf')
+ commands.getoutput(
+ 'echo "nameserver 85.214.20.141" > /etc/resolv.conf')
@given('An initial network configuration')