List:Commits« Previous MessageNext Message »
From:msvensson Date:May 2 2008 7:14am
Subject:bk commit into 5.0 tree (msvensson:1.2612) BUG#36463
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson.  When msvensson does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-05-02 09:13:43+02:00, msvensson@stripped +1 -0
  Bug#36463 mysql-test-run.pl should always use the --tmpdi

  mysql-test/mysql-test-run.pl@stripped, 2008-05-02 09:13:42+02:00, msvensson@stripped +10 -2
    Use the requested tmpdir in 'collect_mysqld_features', create
    it if it does not already exists

diff -Nrup a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
--- a/mysql-test/mysql-test-run.pl	2008-02-06 07:16:51 +01:00
+++ b/mysql-test/mysql-test-run.pl	2008-05-02 09:13:42 +02:00
@@ -1367,7 +1367,15 @@ sub datadir_list_setup () {
 
 sub collect_mysqld_features () {
   my $found_variable_list_start= 0;
-  my $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
+  my $tmpdir;
+  if ( $opt_tmpdir ) {
+    # Use the requested tmpdir
+    mkpath($opt_tmpdir) if (! -d $opt_tmpdir);
+    $tmpdir= $opt_tmpdir;
+  }
+  else {
+    $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
+  }
 
   #
   # Execute "mysqld --no-defaults --help --verbose" to get a
@@ -1428,7 +1436,7 @@ sub collect_mysqld_features () {
       }
     }
   }
-  rmtree($tmpdir);
+  rmtree($tmpdir) if (!$opt_tmpdir);
   mtr_error("Could not find version of MySQL") unless $mysql_version_id;
   mtr_error("Could not find variabes list") unless $found_variable_list_start;
 
Thread
bk commit into 5.0 tree (msvensson:1.2612) BUG#36463msvensson2 May