diff options
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 9f841387c24..9ce47bbe7d2 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -356,7 +356,7 @@ my $source_dist= -d "../sql"; my $opt_max_save_core= env_or_val(MTR_MAX_SAVE_CORE => 5); my $opt_max_save_datadir= env_or_val(MTR_MAX_SAVE_DATADIR => 20); -my $opt_max_test_fail= env_or_val(MTR_MAX_TEST_FAIL => 10); +my $opt_max_test_fail= undef; my $opt_core_on_failure= 0; my $opt_parallel= $ENV{MTR_PARALLEL} || 1; @@ -1396,6 +1396,15 @@ sub command_line_setup { $opt_big_test= 1; } + if ( defined $opt_max_test_fail && !$opt_force ) + { + $opt_force= 1; + } + if ( not defined $opt_max_test_fail ) + { + $opt_max_test_fail= env_or_val(MTR_MAX_TEST_FAIL => 10); + } + # -------------------------------------------------------------------------- # Find out type of logging that are being used # -------------------------------------------------------------------------- @@ -6342,9 +6351,9 @@ Options for debugging the product $opt_max_save_datadir, set to 0 for no limit. Set it's default with MTR_MAX_SAVE_DATADIR max-test-fail Limit the number of test failures before aborting - the current test run. Defaults to - $opt_max_test_fail, set to 0 for no limit. Set - it's default with MTR_MAX_TEST_FAIL + the current test run. Command line option implies --force. + Defaults to $opt_max_test_fail, set to 0 for no limit. + Set it's default with MTR_MAX_TEST_FAIL core-in-failure Generate a core even if run server is run with valgrind Options for valgrind |