From f058b9383dad6c927382c9ff25c5fc8f970d76f1 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 25 Oct 2017 16:22:35 -0400 Subject: [PATCH] In test cleanup, only delete DBs if they exist Change-Id: I892b7f8a3dfac2e84fa39ba95962eee586b88286 --- tests/nova_cleanup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/nova_cleanup.sh b/tests/nova_cleanup.sh index 283c5f9..e1d0fb7 100644 --- a/tests/nova_cleanup.sh +++ b/tests/nova_cleanup.sh @@ -3,7 +3,7 @@ set -x sudo mysql -u root << EOF -DROP DATABASE nova; -DROP DATABASE nova_api; -DROP DATABASE nova_cell0; +DROP DATABASE IF EXISTS nova; +DROP DATABASE IF EXISTS nova_api; +DROP DATABASE IF EXISTS nova_cell0; EOF