MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:October 5 2009 11:08am
Subject:bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2838) Bug#47243
View as plain text  
#At file:///home/bm136801/my/etc-51/ based on revid:bjorn.munch@stripped

 2838 Bjorn Munch	2009-10-05
      Bug #47243 Allow MTR to read max auto setting for --parallel from env. variable
      In stead of hard-coded 8, read from $MTR_MAX_PARALLEL if set

    modified:
      mysql-test/mysql-test-run.pl
=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2009-09-02 21:29:11 +0000
+++ b/mysql-test/mysql-test-run.pl	2009-10-05 11:08:10 +0000
@@ -322,7 +322,8 @@ sub main {
     for my $limit (2000, 1500, 1000, 500){
       $opt_parallel-- if ($sys_info->min_bogomips() < $limit);
     }
-    $opt_parallel= 8 if ($opt_parallel > 8);
+    my $max_par= $ENV{MTR_MAX_PARALLEL} || 8;
+    $opt_parallel= $max_par if ($opt_parallel > $max_par);
     $opt_parallel= $num_tests if ($opt_parallel > $num_tests);
     $opt_parallel= 1 if (IS_WINDOWS and $sys_info->isvm());
     $opt_parallel= 1 if ($opt_parallel < 1);


Attachment: [text/bzr-bundle] bzr/bjorn.munch@sun.com-20091005110810-251ng4z7u1rofqlc.bundle
Thread
bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2838) Bug#47243Bjorn Munch5 Oct