support for 'destroy' in testing

This commit is contained in:
Shlomi Noach 2016-10-14 09:05:38 +02:00
parent 6c7ab1a3e5
commit e1ac5583e6
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
drop table if exists gh_ost_test_child;

View File

@ -98,6 +98,10 @@ test_single() {
execution_result=$?
if [ -f $tests_path/$test_name/destroy.sql ] ; then
gh-ost-test-mysql-master --default-character-set=utf8mb4 test < $tests_path/$test_name/destroy.sql
fi
if [ -f $tests_path/$test_name/expect_failure ] ; then
if [ $execution_result -eq 0 ] ; then
echo