From ad0161cf88eeb4b5c93f573626956a3f237c5af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 8 Nov 2024 12:18:17 -0500 Subject: [PATCH] test-launcher.sh: minor adjustments - avoid the following error: `COVERAGE_ARG: unbound variable` - ensure `MOCK_LIGHTSPEED_API=0` is not considered true. --- tools/test-launcher.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-launcher.sh b/tools/test-launcher.sh index 9c0b5a7cd..561d63155 100755 --- a/tools/test-launcher.sh +++ b/tools/test-launcher.sh @@ -18,6 +18,7 @@ COVERAGE="${COVERAGE:-}" EXTEST=./node_modules/.bin/extest MOCK_LIGHTSPEED_API="${MOCK_LIGHTSPEED_API:-}" TEST_TYPE="${TEST_TYPE:-ui}" # e2e or ui +COVERAGE_ARG="" OPTSTRING=":c" @@ -40,7 +41,7 @@ if [[ "${COVERAGE}" == "1" ]]; then fi -if [[ "$MOCK_LIGHTSPEED_API" != "" ]]; then +if [[ "$MOCK_LIGHTSPEED_API" == "1" ]]; then if [[ -n "${TEST_LIGHTSPEED_URL}" ]]; then echo "MOCK_LIGHTSPEED_API is true, the existing TEST_LIGHTSPEED_URL envvar will be ignored!" fi