From 15a0de66cb750f935f2b908763d2369e23366d6c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Feb 2012 14:01:44 +1100 Subject: wintest: Allow access denied when turning off the firewall --- wintest/wintest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wintest') diff --git a/wintest/wintest.py b/wintest/wintest.py index 8bdd7a85eb..b58cff597d 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -577,11 +577,11 @@ 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", "The requested operation requires elevation"]) + i = child.expect(["Ok", "The following command was not found: advfirewall set allprofiles state off", "The requested operation requires elevation", "Access is denied"]) child.expect("C:") if i == 1: child.sendline('netsh firewall set opmode mode = DISABLE profile = ALL') - i = child.expect(["Ok", "The following command was not found"]) + i = child.expect(["Ok", "The following command was not found", "Access is denied"]) if i != 0: self.info("Firewall disable failed - ignoring") child.expect("C:") -- cgit