Skip to content

Commit

Permalink
wintest: extend get_is_dc function with additional expectations
Browse files Browse the repository at this point in the history
Windows Server 2003 r2 answers "wintest2k3 is not a DC."

Signed-off-by: Kai Blin <[email protected]>
  • Loading branch information
Björn Baumbach authored and kblin committed Jun 21, 2012
1 parent 884e28f commit 5305570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wintest/wintest.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def get_ipconfig(self, child):
def get_is_dc(self, child):
'''check if a windows machine is a domain controller'''
child.sendline("dcdiag")
i = child.expect(["is not a Directory Server",
i = child.expect(["is not a [Directory Server|DC]",
"is not recognized as an internal or external command",
"Home Server = ",
"passed test Replications"])
Expand Down

0 comments on commit 5305570

Please sign in to comment.