From c1746dc5434be2982f757dae9aebeece593af4ea Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 25 Oct 2017 16:21:42 -0400 Subject: [PATCH] In test cleanup, only delete DB if it exists Change-Id: I42b0e03b442e88bea8024adac525c82414ac2723 --- tests/glance_cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/glance_cleanup.sh b/tests/glance_cleanup.sh index af19441..c60b17f 100755 --- a/tests/glance_cleanup.sh +++ b/tests/glance_cleanup.sh @@ -3,5 +3,5 @@ set -ex sudo mysql -u root << EOF -DROP DATABASE glance; +DROP DATABASE IF EXISTS glance; EOF