Skip to content

Commit

Permalink
fix the skip db bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 9, 2024
1 parent fed284f commit a59945b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/install-local-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for i in "$@"; do
shift
;;
--no-db)
SKIP_DB="--no-db"
SKIP_DB="true"
shift
;;
--tmpdir=*)
Expand All @@ -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"
Expand Down

0 comments on commit a59945b

Please sign in to comment.