diff options
author | Michael Widenius <monty@askmonty.org> | 2011-01-05 16:03:58 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-01-05 16:03:58 +0200 |
commit | 215043b7c2ace7ce05dcf6c685c87a293ccf1cd7 (patch) | |
tree | 679d57ddbf9713b7129872db144ff408b0215b31 /mysql-test/mysql-test-run.pl | |
parent | 31a78529bc5c4431865eba06762e6cc66359f759 (diff) | |
parent | 6b03fbf9fcacc74cb2999ba7715d22d754f356c7 (diff) | |
download | mariadb-git-215043b7c2ace7ce05dcf6c685c87a293ccf1cd7.tar.gz |
Merge with 5.1
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index bc88d0d43f9..745fed0ceb8 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -729,9 +729,11 @@ sub run_test_server ($$$) { last; } - # Second best choice is the first that does not fulfill - # any of the above conditions - if (!defined $second_best){ + # From secondary choices, we prefer to pick a 'long-running' test if + # possible; this helps avoid getting stuck with a few of those at the + # end of high --parallel runs, with most workers being idle. + if (!defined $second_best || + ($t->{'long_test'} && !($tests->[$second_best]{'long_test'}))){ #mtr_report("Setting second_best to $i"); $second_best= $i; } |