wintest Allow setting of the firewall to fail
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Apr 2011 04:06:31 +0000 (14:06 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Apr 2011 04:35:36 +0000 (14:35 +1000)
This is also required to allow a telnet connection as non-admin.

Andrew Bartlett

wintest/wintest.py

index 80132d76b87471aa8dc5f91f9804f36be2e1799e..d5728a883b5a7a9d2548b21175cacfdeeea510a4 100644 (file)
@@ -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')