Skip to content

Commit a5f52c6

Browse files
szedergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cae598d commit a5f52c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

t/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ appropriately before running "make".
154154
As the names depend on the tests' file names, it is safe to
155155
run the tests with this option in parallel.
156156

157+
-V::
157158
--verbose-log::
158159
Write verbose output to the same logfile as `--tee`, but do
159160
_not_ write it to stdout. Unlike `--tee --verbose`, this option

t/test-lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ case "$GIT_TEST_TEE_STARTED, $* " in
6767
done,*)
6868
# do not redirect again
6969
;;
70-
*' --tee '*|*' --va'*|*' --verbose-log '*)
70+
*' --tee '*|*' --va'*|*' -V '*|*' --verbose-log '*)
7171
mkdir -p "$TEST_OUTPUT_DIRECTORY/test-results"
7272
BASE="$TEST_OUTPUT_DIRECTORY/test-results/$(basename "$0" .sh)"
7373

@@ -285,7 +285,7 @@ do
285285
echo >&2 "warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD"
286286
fi
287287
shift ;;
288-
--verbose-log)
288+
-V|--verbose-log)
289289
verbose_log=t
290290
shift ;;
291291
*)

0 commit comments

Comments
 (0)