From: Michael Adam Date: Wed, 15 Jun 2016 23:00:13 +0000 (+0200) Subject: selftest: check for winbind on 1-second basis X-Git-Tag: tdb-1.3.10~419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25fee06e0c56dd7907ff2719ff61e9fe74dc71e6;p=thirdparty%2Fsamba.git selftest: check for winbind on 1-second basis There is a chance to reduce the overall time spent checking. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 61ec9860d42..60300f880c2 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -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;