Skip to content

Commit 9c65c6f

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 breaks the TAP format because it is not prefixed with a "#". Fix this. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f3d8039 commit 9c65c6f

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)