summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-02-28 13:47:41 +0100
committerunknown <msvensson@pilot.blaudden>2007-02-28 13:47:41 +0100
commit7624028419147d656646c95b2bc11ea72aa3e419 (patch)
tree2845b76392fd105eef38fb698d41eb1f9fd95ff0 /mysql-test
parent4d49015bf9dafab0f08adada3a9011b6aeecf31c (diff)
downloadmariadb-git-7624028419147d656646c95b2bc11ea72aa3e419.tar.gz
When using a --mem=<dir> the memdir must be removed to assure
afresh start
Diffstat (limited to 'mysql-test')
-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 ed26204d7cb..21960d2bfcd 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2025,6 +2025,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
{