1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

wintest: handle missing firewall commands

my w2k3 box doesn't have these firewall commands
This commit is contained in:
Andrew Tridgell 2010-11-27 10:27:22 +11:00
parent 1e96da556a
commit 3bc6145143

View File

@ -319,7 +319,9 @@ class wintest():
child.expect("C:")
if i == 1:
child.sendline('netsh firewall set opmode mode = DISABLE profile = ALL')
child.expect("Ok")
i = child.expect(["Ok", "The following command was not found"])
if i != 0:
self.info("Firewall disable failed - ignoring")
child.expect("C:")
def set_dns(self, child):