selftest: Ensure winbindd is fully operating before running tests
authorAndrew Bartlett <abartlet@samba.org>
Fri, 23 May 2014 21:44:58 +0000 (09:44 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 4 Jun 2014 01:22:25 +0000 (03:22 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/target/Samba3.pm

index f50278345ef33293196c6c67e12c0b9ae2b89f3f..59ad4d5dcbb942fd3e055435500a993e37e32ba8 100755 (executable)
@@ -1301,7 +1301,7 @@ sub wait_for_start($$$$$)
            print "checking for winbindd\n";
            my $count = 0;
            do {
-               $ret = system("SELFTEST_WINBINDD_SOCKET_DIR=" . $envvars->{SELFTEST_WINBINDD_SOCKET_DIR} . " " . Samba::bindir_path($self, "wbinfo") . " -p");
+               $ret = system("SELFTEST_WINBINDD_SOCKET_DIR=" . $envvars->{SELFTEST_WINBINDD_SOCKET_DIR} . " " . Samba::bindir_path($self, "wbinfo") . " --ping-dc");
                if ($ret != 0) {
                    sleep(2);
                }