s4-test-fsmo.py: Implement kind of busy-wait for role transfer
authorKamen Mazdrashki <kamenim@samba.org>
Thu, 30 Sep 2010 18:42:17 +0000 (21:42 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Sat, 2 Oct 2010 22:24:57 +0000 (01:24 +0300)
commitd385d9a3178c6cc705f7cccf6688ba9b60571e96
treef2daec4a152cd3cc34f81c041f24dc6c0e72ed56
parent657d4d88124f3a6b48e543abadd37948c426dca9
s4-test-fsmo.py: Implement kind of busy-wait for role transfer

This allows us not to hard code timeout we are going to wait for
before failing the test - if DCs are not very busy, we won't wait
at all (speeds up 'make test' by a minute also)

Maximum timeout to wait for is set to 20 secs currently,
which should be enough even for slow machines and tested
DCs being under load
source4/torture/drs/python/fsmo.py