From a59945bf1d6d7dc6978e780598716281ea93e71f Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Thu, 8 Feb 2024 17:43:45 -0700 Subject: [PATCH] fix the skip db bit --- bin/install-local-tests.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/install-local-tests.sh b/bin/install-local-tests.sh index f1ef4af..f7b1ca0 100755 --- a/bin/install-local-tests.sh +++ b/bin/install-local-tests.sh @@ -37,7 +37,7 @@ for i in "$@"; do shift ;; --no-db) - SKIP_DB="--no-db" + SKIP_DB="true" shift ;; --tmpdir=*) @@ -55,7 +55,12 @@ done # Run install-wp-tests.sh echo "Installing local tests into ${TMPDIR}" echo "Using WordPress version: ${WP_VERSION}" -bash "$(dirname "$0")/install-wp-tests.sh" --version="$WP_VERSION" --tmpdir="$TMPDIR" --dbname="$DB_NAME" --dbuser="$DB_USER" --dbpass="$DB_PASS" --dbhost="$DB_HOST" "$SKIP_DB" + +if [ -z "$SKIP_DB" ]; then + bash "$(dirname "$0")/install-wp-tests.sh" --version="$WP_VERSION" --tmpdir="$TMPDIR" --dbname="$DB_NAME" --dbuser="$DB_USER" +else + bash "$(dirname "$0")/install-wp-tests.sh" bash "$(dirname "$0")/install-wp-tests.sh" --version="$WP_VERSION" --tmpdir="$TMPDIR" --dbname="$DB_NAME" --dbuser="$DB_USER" --dbpass="$DB_PASS" --dbhost="$DB_HOST" --no-db +fi # Run PHPUnit echo "Running PHPUnit"