summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-02-28 13:48:43 +0100
committerunknown <msvensson@pilot.blaudden>2007-02-28 13:48:43 +0100
commit99f286d5a24c945c991ae6d631e4f9dd12c628a4 (patch)
treeab7d5b46ed63e5b09e3a8cebcc9ea90ba381cbe9 /mysql-test/mysql-test-run.pl
parent031e62ecee0947d3592c015f6f3890c8754f764e (diff)
parent63b68fa2880ded65bd0471b8ac186b850a7e9d70 (diff)
downloadmariadb-git-99f286d5a24c945c991ae6d631e4f9dd12c628a4.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint mysql-test/mysql-test-run.pl: Auto merged
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 4f1269cb351..70b7854c1a9 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2129,6 +2129,16 @@ sub remove_stale_vardir () {
mtr_verbose("Removing $opt_vardir/");
rmtree("$opt_vardir/");
}
+
+ if ( $opt_mem )
+ {
+ # A symlink from var/ to $opt_mem will be set up
+ # remove the $opt_mem dir to assure the symlink
+ # won't point at an old directory
+ mtr_verbose("Removing $opt_mem");
+ rmtree($opt_mem);
+ }
+
}
else
{