From 1367e2b303bb11f26552ee511a823ea551e98cbd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 7 Apr 2011 14:06:31 +1000 Subject: wintest Allow setting of the firewall to fail This is also required to allow a telnet connection as non-admin. Andrew Bartlett --- wintest/wintest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wintest') diff --git a/wintest/wintest.py b/wintest/wintest.py index 80132d76b87..d5728a883b5 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -577,7 +577,7 @@ options { def disable_firewall(self, child): '''remove the annoying firewall''' child.sendline('netsh advfirewall set allprofiles state off') - i = child.expect(["Ok", "The following command was not found: advfirewall set allprofiles state off"]) + i = child.expect(["Ok", "The following command was not found: advfirewall set allprofiles state off", "The requested operation requires elevation"]) child.expect("C:") if i == 1: child.sendline('netsh firewall set opmode mode = DISABLE profile = ALL') -- cgit v1.2.1