From ce8de54a6821147384509e0db3a7fb8928592879 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 12 Jul 2016 13:16:27 +0200 Subject: [PATCH] selftest: check for smbd on a 1-second basis. Chance to reduce the overall time spent in checking for smbd Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- selftest/target/Samba3.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 60300f880c2..4e3169dc107 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1907,11 +1907,11 @@ sub wait_for_start($$$$$) do { $ret = system(Samba::bindir_path($self, "smbclient") ." $envvars->{CONFIGURATION} -L $envvars->{SERVER} -U% -p 139"); 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 "SMBD failed to start up in a reasonable time (20sec)\n"; teardown_env($self, $envvars); return 0;