test-lib: introduce the '-V' short option for '--verbose-log'

'--verbose-log' is one of the most useful and thus most frequently used test options, but due to its length it's a pain to type on the command line. Let's introduce the corresponding short option '-V' to save some keystrokes. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Oct 29, 2018 at 13:13 UTC a5f52c6dab2337c8feae2a733e81a64e0605b113
2 files changed +3 -2
t/README
+1
@@ -154,6 +154,7 @@ appropriately before running "make".
154 As the names depend on the tests' file names, it is safe to
155 run the tests with this option in parallel.
156
157 +-V::
158 --verbose-log::
159 Write verbose output to the same logfile as `--tee`, but do
160 _not_ write it to stdout. Unlike `--tee --verbose`, this option
t/test-lib.sh
+2 -2
@@ -67,7 +67,7 @@ case "$GIT_TEST_TEE_STARTED, $* " in
67 done,*)
68 # do not redirect again
69 ;;
70 -*' --tee '*|*' --va'*|*' --verbose-log '*)
70 +*' --tee '*|*' --va'*|*' -V '*|*' --verbose-log '*)
71 mkdir -p "$TEST_OUTPUT_DIRECTORY/test-results"
72 BASE="$TEST_OUTPUT_DIRECTORY/test-results/$(basename "$0" .sh)"
73
@@ -285,7 +285,7 @@ do
285 echo >&2 "warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD"
286 fi
287 shift ;;
288 - --verbose-log)
288 + -V|--verbose-log)
289 verbose_log=t
290 shift ;;
291 *)