]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Add skip_wait to check_or_start
authorAndreas Schneider <asn@samba.org>
Mon, 10 May 2021 14:37:16 +0000 (16:37 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 12 May 2021 20:29:32 +0000 (20:29 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/target/Samba3.pm

index 115b09de548bd518a56f684e9facf827b1274dbf..ce3e303eba02c4385990e5d617a006d9277e0b04 100755 (executable)
@@ -1897,6 +1897,7 @@ sub check_or_start($$) {
        my $winbindd = $args{winbindd} // "no";
        my $smbd = $args{smbd} // "no";
        my $child_cleanup = $args{child_cleanup};
+       my $skip_wait = $args{skip_wait} // 0;
 
        my $STDIN_READER;
 
@@ -1981,6 +1982,10 @@ sub check_or_start($$) {
        # close the parent's read-end of the pipe
        close($STDIN_READER);
 
+       if ($skip_wait) {
+               return 1;
+       }
+
        return $self->wait_for_start($env_vars, $nmbd, $winbindd, $smbd);
 }