mirror of
https://github.com/samba-team/samba.git
synced 2025-08-15 13:49:28 +03:00
selftest: Abort if we fail to startup testenv with '--one' option
The --one selftest.pl option means abort when the first test fails. However, when 'make test' fails to startup a testenv, it'll try to continue and run other tests by default. When '--one' is used, selftest.pl can just die() at that point. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
ec51bfca4e
commit
bcd0075328
@ -944,7 +944,11 @@ sub setup_env($$)
|
||||
$testenv_vars->{target} = $target;
|
||||
}
|
||||
if (not defined($testenv_vars)) {
|
||||
warn("$opt_target can't start up known environment '$envname'");
|
||||
if ($opt_one) {
|
||||
die("$opt_target can't start up known environment '$envname'");
|
||||
} else {
|
||||
warn("$opt_target can't start up known environment '$envname'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user