support for 'destroy' in testing
This commit is contained in:
parent
6c7ab1a3e5
commit
e1ac5583e6
1
localtests/fail-fk-parent/destroy.sql
Normal file
1
localtests/fail-fk-parent/destroy.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
drop table if exists gh_ost_test_child;
|
@ -98,6 +98,10 @@ test_single() {
|
|||||||
|
|
||||||
execution_result=$?
|
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 [ -f $tests_path/$test_name/expect_failure ] ; then
|
||||||
if [ $execution_result -eq 0 ] ; then
|
if [ $execution_result -eq 0 ] ; then
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user