MDEV-10248 Cannot Remove Test Tables

While dropping the test database, use IF EXISTS to avoid bogus errors
This commit is contained in:
Elena Stepanova 2016-07-15 23:51:30 +03:00
parent 4e19aa3864
commit 5cf49cdf92
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ sub remove_remote_root {
sub remove_test_database { sub remove_test_database {
print " - Dropping test database...\n"; print " - Dropping test database...\n";
if (do_query("DROP DATABASE test;")) { if (do_query("DROP DATABASE IF EXISTS test;")) {
print " ... Success!\n"; print " ... Success!\n";
} else { } else {
print " ... Failed! Not critical, keep moving...\n"; print " ... Failed! Not critical, keep moving...\n";

View File

@ -324,7 +324,7 @@ remove_remote_root() {
remove_test_database() { remove_test_database() {
echo " - Dropping test database..." echo " - Dropping test database..."
do_query "DROP DATABASE test;" do_query "DROP DATABASE IF EXISTS test;"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo " ... Success!" echo " ... Success!"
else else