summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2010-02-17 12:37:37 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2010-02-17 12:37:37 +0100
commit5b7306e259e98f087b04d2fee15ace06fad941c5 (patch)
treea573a0b1f2960e11c2efe9ac53ffd9996fe5f9de /mysql-test/mysql-test-run.pl
parent80e25b18046a41ddffbaa88347f8c90d34ef3668 (diff)
downloadmariadb-git-5b7306e259e98f087b04d2fee15ace06fad941c5.tar.gz
Bug #44054 MTR2: --no-reorder does not prevent reordering
Some logic would group by suite always Disable this if using --noreorder Also fix getting array from collect_one_suite() in this case Amended according to previous comment
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index a7ff049bcdc..1e564e26c4c 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -222,6 +222,7 @@ my $opt_wait_all;
my $opt_repeat= 1;
my $opt_retry= 3;
my $opt_retry_failure= env_or_val(MTR_RETRY_FAILURE => 2);
+my $opt_reorder= 1;
my $opt_strace_client;
@@ -306,7 +307,7 @@ sub main {
}
mtr_report("Collecting tests...");
- my $tests= collect_test_cases($opt_suites, \@opt_cases);
+ my $tests= collect_test_cases($opt_reorder, $opt_suites, \@opt_cases);
if ( $opt_report_features ) {
# Put "report features" as the first test to run
@@ -629,9 +630,9 @@ sub run_test_server ($$$) {
next;
}
- # Prefer same configuration
- if (defined $result and
- $result->{template_path} eq $t->{template_path})
+ # Prefer same configuration, or just use next if --noreorder
+ if (!$opt_reorder or (defined $result and
+ $result->{template_path} eq $t->{template_path}))
{
#mtr_report("Test uses same config => good match");
# Test uses same config => good match
@@ -902,7 +903,7 @@ sub command_line_setup {
'report-features' => \$opt_report_features,
'comment=s' => \$opt_comment,
'fast' => \$opt_fast,
- 'reorder!' => \&collect_option,
+ 'reorder!' => \$opt_reorder,
'enable-disabled' => \&collect_option,
'verbose+' => \$opt_verbose,
'verbose-restart' => \&report_option,