Skip to content

Commit

Permalink
Create database, if not exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen authored Mar 16, 2020
1 parent 88a7776 commit 06dd090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stages/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ _stage_run_tests() {
fi

if [[ -f ${docroot}/${DRUPAL_TESTING_TEST_DUMP_FILE} ]]; then
# Database needs to be initialized, if the run was split into a build and a test run.
mysql --host="${DRUPAL_TESTING_DATABASE_HOST}" --port="${DRUPAL_TESTING_DATABASE_PORT}" --user="${DRUPAL_TESTING_DATABASE_USER}" --password="${DRUPAL_TESTING_DATABASE_PASSWORD}" -e "CREATE DATABASE IF NOT EXISTS ${DRUPAL_TESTING_DATABASE_NAME};"
export thunderDumpFile=${docroot}/${DRUPAL_TESTING_TEST_DUMP_FILE}
fi

Expand Down

0 comments on commit 06dd090

Please sign in to comment.