From 987878469d6a3c14addd251e45f65241467e010c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 Jul 2023 14:10:48 +0200 Subject: -more script fixes --- src/auditor/test-auditor.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/auditor/test-auditor.sh') diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index fb350a794..dbbe74899 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -59,17 +59,17 @@ LIBEUFIN_SETTLE_TIME=1 function stop_libeufin() { echo -n "Stopping libeufin... " - if test -f ${MY_TMP_DIR:-/}/libeufin-sandbox.pid + if test -f "${MY_TMP_DIR:-/}/libeufin-sandbox.pid" then - PID=$(cat ${MY_TMP_DIR}/libeufin-sandbox.pid 2> /dev/null) + PID=$(cat "${MY_TMP_DIR}/libeufin-sandbox.pid" 2> /dev/null) echo "Killing libeufin sandbox $PID" rm "${MY_TMP_DIR}/libeufin-sandbox.pid" kill "$PID" 2> /dev/null || true wait "$PID" || true fi - if test -f ${MY_TMP_DIR:-/}/libeufin-nexus.pid + if test -f "${MY_TMP_DIR:-/}/libeufin-nexus.pid" then - PID=$(cat ${MY_TMP_DIR}/libeufin-nexus.pid 2> /dev/null) + PID=$(cat "${MY_TMP_DIR}/libeufin-nexus.pid" 2> /dev/null) echo "Killing libeufin nexus $PID" rm "${MY_TMP_DIR}/libeufin-nexus.pid" kill "$PID" 2> /dev/null || true @@ -2238,7 +2238,6 @@ function check_with_database() { BASEDB="$1" CONF="$1.conf" - ORIGIN=$(pwd) echo "Running test suite with database $BASEDB using configuration $CONF" MASTER_PRIV_FILE="${BASEDB}.mpriv" taler-config \ @@ -2344,7 +2343,7 @@ export PGHOST MYDIR="${MY_TMP_DIR}/basedb" mkdir -p "${MYDIR}" echo "Generating fresh database at $MYDIR" -if faketime -f '-1 d' ./generate-auditor-basedb.sh "$MYDIR/$DB" +if faketime -f '-1 d' ./generate-auditor-basedb.sh -d "$MYDIR/$DB" then echo -n "Reset 'auditor-basedb' database at $PGHOST ..." dropdb "auditor-basedb" >/dev/null 2>/dev/null || true -- cgit v1.2.3