Git fork

t/test-lib: fix TAP format for BASH_XTRACEFD warning

When the Bash version is too old to support BASH_XTRACEFD we print a
warning to stderr. This warning is not prefixed with "#", which causes
TAP parsers to (wrongly) interpret the warning as part of the protocol.

Fix this issue by prefixing the warning with a "#" so that it is treated
as comment.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Patrick Steinhardt and committed by
Junio C Hamano
d4ea24b8 d411d3d8

+1 -1
+1 -1
t/test-lib.sh
··· 470 470 then 471 471 : Executed by a Bash version supporting BASH_XTRACEFD. Good. 472 472 else 473 - echo >&2 "warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD" 473 + echo >&2 "# warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD" 474 474 trace= 475 475 fi 476 476 fi