mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
selftest: check for winbind on 1-second basis
There is a chance to reduce the overall time spent checking. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
e8bab7e5b2
commit
25fee06e0c
@ -1888,11 +1888,11 @@ sub wait_for_start($$$$$)
|
||||
do {
|
||||
$ret = system("SELFTEST_WINBINDD_SOCKET_DIR=" . $envvars->{SELFTEST_WINBINDD_SOCKET_DIR} . " " . Samba::bindir_path($self, "wbinfo") . " --ping-dc");
|
||||
if ($ret != 0) {
|
||||
sleep(2);
|
||||
sleep(1);
|
||||
}
|
||||
$count++;
|
||||
} while ($ret != 0 && $count < 10);
|
||||
if ($count == 10) {
|
||||
} while ($ret != 0 && $count < 20);
|
||||
if ($count == 20) {
|
||||
print "WINBINDD not reachable after 20 seconds\n";
|
||||
teardown_env($self, $envvars);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user