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 d04cabbb3e680a80be8c36fc812ff639fc806e05..df2f253f4aa4d0619cdb08586045e6fb0867264b 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'])