Skip to content

Commit

Permalink
scripts/soltest.sh: Disable the warning about missing quotes around $…
Browse files Browse the repository at this point in the history
…DEBUGGER

- There are ways to fix the warning properly but they're all less readable than this in my opinion.
  • Loading branch information
cameel committed Feb 2, 2021
1 parent 4a7d494 commit cba6e68
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/soltest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ do
esac
shift
done

SOLTEST_COMMAND=("${SOLIDITY_BUILD_DIR}/test/soltest" "${BOOST_OPTIONS[@]}" -- --testpath "${REPO_ROOT}/test" "${SOLTEST_OPTIONS[@]}")

if [ "$USE_DEBUGGER" -ne "0" ]; then
DEBUG_PREFIX=${DEBUGGER}
# shellcheck disable=SC2086
exec ${DEBUGGER} "${SOLTEST_COMMAND[@]}"
else
exec "${SOLTEST_COMMAND[@]}"
fi

exec ${DEBUG_PREFIX} "${SOLIDITY_BUILD_DIR}/test/soltest" "${BOOST_OPTIONS[@]}" -- --testpath "${REPO_ROOT}/test" "${SOLTEST_OPTIONS[@]}"

0 comments on commit cba6e68

Please sign in to comment.