diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-29 13:18:31 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:20:42 -0400 |
commit | 997c3d6aaee429b6fda2294c1465319f4dc434bc (patch) | |
tree | 6fd34128fbb5860e41c24a931fceb02f138d0204 /tests/functional/features | |
parent | baf14c76a3cc083283e2fc7d981b02d38e4569c2 (diff) |
[tests] apply dns workaround for functional tests
Diffstat (limited to 'tests/functional/features')
-rw-r--r-- | tests/functional/features/steps/vpn.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/functional/features/steps/vpn.py b/tests/functional/features/steps/vpn.py index 020ac7cb..489d4234 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') |