Re: [PATCH 1/2 v2] t/test-lib.sh: add test_external and test_external_without_stderr
Show 9 quoted lines
> +# Like test_external, but in addition tests that the command generated
> +# no output on stderr.
> +test_external_without_stderr () {
> + # The temporary file has no (and must have no) security
> + # implications.
> + tmp="$TMPDIR"; if [ -z "$tmp" ]; then tmp=/tmp; fi
> + stderr="$tmp/git-external-stderr.$$.tmp"
> + test_external "$@" 4> "$stderr"
> + [ -f "$stderr" ] || eror "Internal error: $stderr disappeared."Just a typo here: s/eror/error/
Olivier.