From 44b0ff9e02c6f048feb8abaf19a7570751cdb38e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 22 May 2025 22:46:07 +0200 Subject: [PATCH] MT#62763 Fix shellcheck issues Warned-by: shellcheck Change-Id: Ib4dabe94ee29768da23e6ced406eb853d8fd7b29 --- run_tests.sh | 2 +- t/testrunner | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 9c46841..aadf696 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -51,7 +51,7 @@ EOF fi } -if [[ -n "$@" ]]; then +if [[ $# -gt 0 ]]; then for i in "$@"; do if [ ! -f "$i" ]; then echo "No $i found" diff --git a/t/testrunner b/t/testrunner index 90b8b2f..8679aa4 100755 --- a/t/testrunner +++ b/t/testrunner @@ -18,4 +18,4 @@ else fi RESULTS=${RESULTS} FORMAT=JUNIT ./run_tests.sh -WORKSPACE=${RESULTS}/tmp py.test-3 --junit-xml=${RESULTS}/reports/test_dlgcnt.xml ./tests/test_dlgcnt.py +WORKSPACE="${RESULTS}/tmp" py.test-3 --junit-xml="${RESULTS}/reports/test_dlgcnt.xml" ./tests/test_dlgcnt.py