[libdbd-mysql-perl] 01/01: debian/tests/pkg-perl/smoke-setup: add "IF NOT EXISTS" to "CREATE DATABASE"
gregor herrmann
gregoa at debian.org
Fri Oct 7 12:06:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch ntyni/autopkgtest
in repository libdbd-mysql-perl.
commit 814db667e48082cc75bf431f87dbc4a12051df67
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Oct 7 14:05:10 2016 +0200
debian/tests/pkg-perl/smoke-setup: add "IF NOT EXISTS" to "CREATE DATABASE"
seems like mysql already has a test database (mariadb doesn't)
Gbp-Dch: Ignore
---
debian/tests/pkg-perl/smoke-setup | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/tests/pkg-perl/smoke-setup b/debian/tests/pkg-perl/smoke-setup
index 7d083f4..ffe7f09 100755
--- a/debian/tests/pkg-perl/smoke-setup
+++ b/debian/tests/pkg-perl/smoke-setup
@@ -15,7 +15,7 @@ while ! /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} ping 2>&1 ; do
exit 1
fi
done
-mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE ${MYSQL_DBNAME};" 2>&1
+mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE IF NOT EXISTS ${MYSQL_DBNAME};" 2>&1
# fails because mysqld is started with --skip-grant-tables
# (without there's only a passwordless unix-sockety root account
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-mysql-perl.git
More information about the Pkg-perl-cvs-commits
mailing list