wintest: cope with delays in w2k3 starting its DRS server
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 04:00:50 +0000 (15:00 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 05:09:58 +0000 (16:09 +1100)
w2k3 brings up its DRS server quite a long time after its other
services

wintest/test-s4-howto.py

index 1b4fbd6045b7a9741573b5e190e6b5d25577e68b..c530e1ab7ced20788162f3ba849a388563a88520 100755 (executable)
@@ -334,7 +334,7 @@ def test_dcpromo(t, vm):
     t.cmd_contains('bin/smbclient -L ${WIN_HOSTNAME}.${LCREALM} -Utestallowed@${LCREALM}%${PASSWORD1}', ["C$", "IPC$", "Sharename"])
 
     t.cmd_contains("bin/samba-tool drs kcc ${HOSTNAME}.${LCREALM} -Uadministrator@${LCREALM}%${PASSWORD1}", ['Consistency check', 'successful'])
-    t.cmd_contains("bin/samba-tool drs kcc ${WIN_HOSTNAME}.${LCREALM} -Uadministrator@${LCREALM}%${PASSWORD1}", ['Consistency check', 'successful'])
+    t.retry_cmd("bin/samba-tool drs kcc ${WIN_HOSTNAME}.${LCREALM} -Uadministrator@${LCREALM}%${PASSWORD1}", ['Consistency check', 'successful'])
 
     t.kinit("administrator@${REALM}", "${PASSWORD1}")