From 997c3d6aaee429b6fda2294c1465319f4dc434bc Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 29 Aug 2017 13:18:31 -0400 Subject: [tests] apply dns workaround for functional tests --- tests/functional/features/steps/vpn.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/functional') 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') -- cgit v1.2.3