From 50cf5e5c7ae7770fc361758bea90cd2b875769c1 Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Mon, 11 Jun 2018 16:01:29 +0200 Subject: [PATCH] Avoid infinite loop --- run_tests.sh | 2 +- test/support/prepare_db.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index e0756ad0..b409db83 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -135,7 +135,7 @@ fi echo "Preparing the environment" cd ${BASEDIR}/test/support -source prepare_db.sh ${PREPARE_DB_OPTS} || die "database preparation failure" +source prepare_db.sh "${PREPARE_DB_OPTS}" || die "database preparation failure" cd - PATH=node_modules/.bin/:$PATH diff --git a/test/support/prepare_db.sh b/test/support/prepare_db.sh index 7c5ab8d6..95e031f7 100755 --- a/test/support/prepare_db.sh +++ b/test/support/prepare_db.sh @@ -25,6 +25,8 @@ while [ -n "$1" ]; do elif test "$1" = "--no-sql-download"; then DOWNLOAD_SQL_FILES=no shift; continue + else + shift; continue; fi done