[PATCH v3 06/10] t/test-lib: fix TAP format for BASH_XTRACEFD warning
- From
Patrick Steinhardt <ps@pks.im>
- Date
- May 30, 2025, 13:31 UTC
- Message-ID
- <20250530-pks-meson-tap-v3-6-676f5e41f2e4@pks.im>
- In-Reply-To
- <20250530-pks-meson-tap-v3-0-676f5e41f2e4@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.50.0.rc0.604.gd4ff7b7c86.dirty