summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authormsvensson@pilot.blaudden <>2007-02-28 13:47:59 +0100
committermsvensson@pilot.blaudden <>2007-02-28 13:47:59 +0100
commit6ea41f355c33fea70af640c1af44c4678a5e1578 (patch)
treeca30cadfd211495dcbf4f21474054efcad4ea7a7 /mysql-test/mysql-test-run.pl
parent44c56e35b62a62b319e1ad194785bd9d934ddecf (diff)
parentc0da93cd972bd54d6f10331ed469f7bb1a70b157 (diff)
downloadmariadb-git-6ea41f355c33fea70af640c1af44c4678a5e1578.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
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 acb101a789e..5932aa01646 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2114,6 +2114,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
{