wintest Allow 'samba-tool newuser' to run a few times waiting for the RID Set
authorAndrew Bartlett <abartlet@samba.org>
Tue, 30 Nov 2010 01:48:51 +0000 (12:48 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 05:09:59 +0000 (16:09 +1100)
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

wintest/test-s4-howto.py

index d04cabb..df2f253 100755 (executable)
@@ -404,7 +404,7 @@ def test_dcpromo(t, vm):
     child.expect("was successful")
 
     t.info("Checking if new users propogate to windows")
-    t.run_cmd('bin/samba-tool newuser test2 ${PASSWORD2}')
+    t.retry_cmd('bin/samba-tool newuser test2 ${PASSWORD2}', ["created successfully"])
     t.retry_cmd("bin/smbclient -L ${WIN_HOSTNAME}.${LCREALM} -Utest2%${PASSWORD2} -k no", ['Sharename', 'Remote IPC'])
     t.retry_cmd("bin/smbclient -L ${WIN_HOSTNAME}.${LCREALM} -Utest2%${PASSWORD2} -k yes", ['Sharename', 'Remote IPC'])