List:Commits« Previous MessageNext Message »
From:msvensson Date:April 23 2008 10:59am
Subject:bk commit into 5.1 tree (msvensson:1.2590)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 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-04-23 12:59:37+02:00, msvensson@stripped +1 -0
  Don't symlink var/tmp to $opt_tmpdir
  Just treat var/tmp and $opt_tmndir that might be different or same. 

  mysql-test/mysql-test-run.pl@stripped, 2008-04-23 12:59:33+02:00, msvensson@stripped +10 -21
    Don't symlink var/tmp to $opt_tmpdir
    Just treat var/tmp and $opt_tmndir that might be different or same. 

diff -Nrup a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
--- a/mysql-test/mysql-test-run.pl	2008-04-22 22:01:34 +02:00
+++ b/mysql-test/mysql-test-run.pl	2008-04-23 12:59:33 +02:00
@@ -1293,18 +1293,6 @@ sub remove_stale_vardir () {
   mtr_error("No, don't remove the vardir when running with --extern")
     if using_extern();
 
-  my $tmpdir= "$opt_vardir/tmp";
-  if ( -l $tmpdir)
-  {
-    # var/tmp is a symlink
-    mtr_verbose("Removing " . readlink($tmpdir));
-    rmtree(readlink($tmpdir));
-
-    # Remove the "tmp" symlink
-    mtr_verbose("unlink($tmpdir)");
-    unlink($tmpdir);
-  }
-
   mtr_verbose("opt_vardir: $opt_vardir");
   if ( $opt_vardir eq $default_vardir )
   {
@@ -1425,11 +1413,9 @@ sub setup_vardir() {
   mkpath("$opt_vardir/log");
   mkpath("$opt_vardir/run");
 
-  mkpath($opt_tmpdir);
-  if ($opt_tmpdir ne "$opt_vardir/tmp"){
-    mtr_report(" - symlinking 'var/tmp' to '$opt_tmpdir'");
-    symlink($opt_tmpdir, "$opt_vardir/tmp");
-  }
+  # Create var/tmp and tmp - they might be different
+  mkpath("$opt_vardir/tmp");
+  mkpath($opt_tmpdir) if ($opt_tmpdir ne "$opt_vardir/tmp");
 
   # On some operating systems, there is a limit to the length of a
   # UNIX domain socket's path far below PATH_MAX.
@@ -2716,10 +2702,13 @@ sub after_test_failure ($) {
     }
   }
 
-  # Remove all files in the tmpdir
-  rmtree($opt_tmpdir);
-  mkpath($opt_tmpdir);
-
+  # Remove all files in tmp and var/tmp
+  rmtree("$opt_vardir/tmp");
+  mkpath("$opt_vardir/tmp");
+  if ($opt_tmpdir ne "$opt_vardir/tmp"){
+    rmtree($opt_tmpdir);
+    mkpath($opt_tmpdir);
+  }
 }
 
 
Thread
bk commit into 5.1 tree (msvensson:1.2590)msvensson23 Apr