Re: [PATCH v4 6/7] t/Makefile: run unit tests alongside shell tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 24, 2024, 21:25 UTC
- Message-ID
- <xmqqo79yxxk7.fsf@gitster.g>
- In-Reply-To
- <0e32de1afe9cbab02c5d3476a0fc2a1ba0151dcf.1713985716.git.steadmon@google.com>
Josh Steadmon <steadmon@google.com> writes:
> +case "$1" in
> +*.sh)
> + if test -z "${TEST_SHELL_PATH+set}" ; then
> + echo "ERROR: TEST_SHELL_PATH is not set" >&2Style.
As an empty string is not a reasonable value for this variable (and you do not quote ${TEST_SHELL_PATH} when you use it in "exec" below),
if test -z "${TEST_SHELL_PATH:+set}"
then
echo >&2 "ERROR: TEST_SHELL_PATH is not set or empty"may be what we want here.
Show 8 quoted lines
> + exit 1
> + fi
> + exec ${TEST_SHELL_PATH} "$@"
> + ;;
> +*)
> + exec "$@"
> + ;;
> +esacOther than that, the update in this iteration looks reasonable to me.
Thanks.