[PATCH v2 3/6] t/test-lib: fix TAP format for BASH_XTRACEFD warning
- From
Patrick Steinhardt <ps@pks.im>
- Date
- May 27, 2025, 14:02 UTC
- Message-ID
- <20250527-pks-meson-tap-v2-3-ae360f77786e@pks.im>
- In-Reply-To
- <20250527-pks-meson-tap-v2-0-ae360f77786e@pks.im>
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 <ps@pks.im> --- t/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh index 6ce8570226c..8c0d76ea5f0 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -470,7 +470,7 @@ then then : Executed by a Bash version supporting BASH_XTRACEFD. Good. else - echo >&2 "warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD" + echo >&2 "# warning: ignoring -x; '$0' is untraceable without BASH_XTRACEFD" trace= fi fi
-- 2.49.0.1266.g31b7d2e469.dirty