wintest Allow setting of the firewall to fail
[samba.git] / 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')