wintest: extend get_is_dc function with additional expectations
authorBjörn Baumbach <bb@sernet.de>
Tue, 5 Jun 2012 11:57:59 +0000 (13:57 +0200)
committerKai Blin <kai@samba.org>
Thu, 21 Jun 2012 19:55:20 +0000 (21:55 +0200)
Windows Server 2003 r2 answers "wintest2k3 is not a DC."

Signed-off-by: Kai Blin <kai@samba.org>
wintest/wintest.py

index 93da47a6a622befa0d8c881a5a894b8564edf4e3..d01e94bf658e14bf781250c8245be64adedc05b9 100644 (file)
@@ -554,7 +554,7 @@ options {
     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"])