Commit 537ae077 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #6372 save and restore the test dir

git-svn-id: file:///svn/mysql/tests/mysql-test@55279 c7de825b-a66e-492c-adef-691d508d4ae1
parent ddae5338
...@@ -19,7 +19,8 @@ EOF ...@@ -19,7 +19,8 @@ EOF
# remove all tokudb file in the datadir # remove all tokudb file in the datadir
system mkdir $MYSQLD_DATADIR/save; system mkdir $MYSQLD_DATADIR/save;
system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/save; system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/test $MYSQLD_DATADIR/save;
system mkdir $MYSQLD_DATADIR/test;
# install 6.6.8 tokudb test files # install 6.6.8 tokudb test files
system cp -r std_data/tokudb_drop_part_table_668/data/* $MYSQLD_DATADIR; system cp -r std_data/tokudb_drop_part_table_668/data/* $MYSQLD_DATADIR;
...@@ -55,7 +56,7 @@ EOF ...@@ -55,7 +56,7 @@ EOF
--source include/wait_until_disconnected.inc --source include/wait_until_disconnected.inc
# restore saved datadir # restore saved datadir
system rm -rf $MYSQLD_DATADIR/*toku*; system rm -rf $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/test;
system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR; system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR;
system rmdir $MYSQLD_DATADIR/save; system rmdir $MYSQLD_DATADIR/save;
......
...@@ -18,7 +18,8 @@ EOF ...@@ -18,7 +18,8 @@ EOF
# remove all tokudb file in the datadir # remove all tokudb file in the datadir
system mkdir $MYSQLD_DATADIR/save; system mkdir $MYSQLD_DATADIR/save;
system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/save; system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/test $MYSQLD_DATADIR/save;
system mkdir $MYSQLD_DATADIR/test;
# install 6.6.8 tokudb test files # install 6.6.8 tokudb test files
system cp -r std_data/tokudb_drop_simple_table_668/data/* $MYSQLD_DATADIR; system cp -r std_data/tokudb_drop_simple_table_668/data/* $MYSQLD_DATADIR;
...@@ -56,7 +57,7 @@ EOF ...@@ -56,7 +57,7 @@ EOF
--source include/wait_until_disconnected.inc --source include/wait_until_disconnected.inc
# restore saved datadir # restore saved datadir
system rm -rf $MYSQLD_DATADIR/*toku*; system rm -rf $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/test;
system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR; system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR;
system rmdir $MYSQLD_DATADIR/save; system rmdir $MYSQLD_DATADIR/save;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment