Skip to content

Commit d4ea24b

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d411d3d commit d4ea24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ then
470470
then
471471
: Executed by a Bash version supporting BASH_XTRACEFD. Good.
472472
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"
474474
trace=
475475
fi
476476
fi

0 commit comments

Comments
 (0)