Skip to content

Commit

Permalink
test-launcher.sh: minor adjustments
Browse files Browse the repository at this point in the history
- avoid the following error: `COVERAGE_ARG: unbound variable`
- ensure `MOCK_LIGHTSPEED_API=0` is not considered true.
  • Loading branch information
goneri committed Nov 13, 2024
1 parent 980617d commit ad0161c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/test-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit ad0161c

Please sign in to comment.