diff options
author | unknown <msvensson@pilot.blaudden> | 2007-02-28 13:47:41 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-02-28 13:47:41 +0100 |
commit | 7624028419147d656646c95b2bc11ea72aa3e419 (patch) | |
tree | 2845b76392fd105eef38fb698d41eb1f9fd95ff0 /mysql-test | |
parent | 4d49015bf9dafab0f08adada3a9011b6aeecf31c (diff) | |
download | mariadb-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-x | mysql-test/mysql-test-run.pl | 10 |
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 { |