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, 2006-11-28 15:52:18+01:00, msvensson@neptunus.(none) +1 -0
Merge neptunus.(none):/home/msvensson/mysql/work/my41-work
into neptunus.(none):/home/msvensson/mysql/work/my50-work
MERGE: 1.1616.2850.9
mysql-test/mysql-test-run.pl@stripped, 2006-11-28 15:52:13+01:00, msvensson@neptunus.(none) +0 -0
Auto merged
MERGE: 1.8.17.7
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/work/my50-work/RESYNC
--- 1.169/mysql-test/mysql-test-run.pl 2006-11-28 15:52:24 +01:00
+++ 1.170/mysql-test/mysql-test-run.pl 2006-11-28 15:52:24 +01:00
@@ -310,7 +310,7 @@ my $source_dist= 0;
sub main ();
sub initial_setup ();
sub command_line_setup ();
-sub datadir_setup ();
+sub datadir_list_setup ();
sub executable_setup ();
sub environment_setup ();
sub kill_running_servers ();
@@ -1217,7 +1217,7 @@ sub command_line_setup () {
$path_snapshot= "$opt_tmpdir/snapshot_$opt_master_myport/";
}
-sub datadir_setup () {
+sub datadir_list_setup () {
# Make a list of all data_dirs
@data_dir_lst = (
@@ -1981,10 +1981,6 @@ sub kill_running_servers () {
}
}
-sub created_by_mem_filename(){
- return "$glob_mysql_test_dir/var/created_by_mem";
-}
-
#
# Remove var and any directories in var/ created by previous
@@ -2007,14 +2003,16 @@ sub remove_stale_vardir () {
if ( -l $opt_vardir)
{
# var is a symlink
- if (-f created_by_mem_filename() )
+ if ( readlink($opt_vardir) eq $opt_mem )
{
# Remove the directory which the link points at
mtr_verbose("Removing " . readlink($opt_vardir));
rmtree(readlink($opt_vardir));
+
# Remove the entire "var" dir
mtr_verbose("Removing $opt_vardir/");
rmtree("$opt_vardir/");
+
# Remove the "var" symlink
mtr_verbose("unlink($opt_vardir)");
unlink($opt_vardir);
@@ -2064,18 +2062,28 @@ sub remove_stale_vardir () {
sub setup_vardir() {
mtr_report("Creating Directories");
- if ( $opt_mem )
+ if ( $opt_vardir eq $default_vardir )
{
- # Runinng with var as a link to some "memory" location, normally tmpfs
- mtr_verbose("Creating $opt_mem");
- mkpath($opt_mem);
-
- mtr_report("Symlinking 'var' to '$opt_mem'");
- symlink($opt_mem, $opt_vardir);
-
- # Put a small file to recognize this dir was created by --mem
- mtr_verbose("Creating " . created_by_mem_filename());
- mtr_tofile(created_by_mem_filename(), $opt_mem);
+ #
+ # Running with "var" in mysql-test dir
+ #
+ if ( -l $opt_vardir )
+ {
+ # it's a symlink
+
+ # Make sure the directory where it points exist
+ mtr_error("The destination for symlink $opt_vardir does not exist")
+ if ! -d readlink($opt_vardir);
+ }
+ elsif ( $opt_mem )
+ {
+ # Runinng with "var" as a link to some "memory" location, normally tmpfs
+ mtr_verbose("Creating $opt_mem");
+ mkpath($opt_mem);
+
+ mtr_report("Symlinking 'var' to '$opt_mem'");
+ symlink($opt_mem, $opt_vardir);
+ }
}
mkpath("$opt_vardir/log");
@@ -2622,7 +2630,7 @@ sub run_suite () {
sub initialize_servers () {
- datadir_setup();
+ datadir_list_setup();
if ( $opt_extern )
{
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.2345) | msvensson | 28 Nov |