From ea3b30655c50ce9a08bac417db910914919dad67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kuligowski?= Date: Mon, 25 Nov 2024 16:30:32 +0100 Subject: [PATCH] Update run-tests.sh --- .jenkins/lm-eval-harness/run-tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/lm-eval-harness/run-tests.sh b/.jenkins/lm-eval-harness/run-tests.sh index 09d507d404ede..e090f7108bcac 100644 --- a/.jenkins/lm-eval-harness/run-tests.sh +++ b/.jenkins/lm-eval-harness/run-tests.sh @@ -14,7 +14,7 @@ usage() { SUCCESS=0 -while getopts "c:t:j:" OPT; do +while getopts "c:t:" OPT; do case ${OPT} in c ) CONFIG="$OPTARG" @@ -30,7 +30,7 @@ while getopts "c:t:j:" OPT; do done # Parse list of configs. -IFS=$'\n' read -d '' -r -a MODEL_CONFIGS < $CONFIG +IFS=$'\n' read -d '' -r -a MODEL_CONFIGS < "$CONFIG" for MODEL_CONFIG in "${MODEL_CONFIGS[@]}" do @@ -46,11 +46,11 @@ do JUNIT_SUFFIX="" if [[ -n "$TEST_RESULTS_DIR" ]]; then LOG_DIR=$TEST_RESULTS_DIR - LOG_FILENAME="$test_${MODEL_CONFIG}_${RANDOM_SUFFIX}.xml" + LOG_FILENAME="test_${MODEL_CONFIG}_${RANDOM_SUFFIX}.xml" LOG_PATH="${LOG_DIR}/${LOG_FILENAME}" JUNIT_SUFFIX="-o junit_family=xunit1 --junitxml=${LOG_PATH}" fi - pytest -s test_lm_eval_correctness.py $JUNIT_SUFFIX || LOCAL_SUCCESS=$? + pytest -s test_lm_eval_correctness.py "$JUNIT_SUFFIX" || LOCAL_SUCCESS=$? if [[ $LOCAL_SUCCESS == 0 ]]; then echo "=== PASSED MODEL: ${MODEL_CONFIG} ==="