From 7909e743fd1a1b1510675873a5691c3ce4bc9fee Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Jan 2024 21:30:37 +0000 Subject: [PATCH] argh --- tests/setup-db.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/setup-db.sh b/tests/setup-db.sh index 55ee19e0..a1f232f8 100755 --- a/tests/setup-db.sh +++ b/tests/setup-db.sh @@ -14,7 +14,7 @@ if [ "$DATABASE" = "pgsql" ]; then sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres export TEST_DSN="pgsql:user=shimmie;password=shimmie;host=127.0.0.1;dbname=shimmie" fi -if [ "$DATABASE" == "mysql" ]; then +if [ "$DATABASE" = "mysql" ]; then sudo systemctl start mysql mysql --version mysql -e "SET GLOBAL general_log = 'ON';" -uroot -proot @@ -28,6 +28,7 @@ if [ "$DATABASE" = "sqlite" ]; then fi if [ -n "$GITHUB_ENV" ]; then + echo "Setting DSN for $DATABASE: $TEST_DSN" echo "TEST_DSN=$TEST_DSN" >> $GITHUB_ENV echo "INSTALL_DSN=$TEST_DSN" >> $GITHUB_ENV fi