]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: prefix every line of diag_ text, not just the first
authorRichard Hansen <rhansen@rhansen.org>
Mon, 3 Feb 2025 23:26:52 +0000 (18:26 -0500)
committerKarl Berry <karl@freefriends.org>
Sun, 23 Feb 2025 01:36:59 +0000 (17:36 -0800)
* t/ax/tap-function.sh (diag_): Prefix every line of the diagnostic
text, not just the first.

t/ax/tap-functions.sh

index 619cad18305fd34cac06b71f325898b4f5554898..29b9a028c826e3c69ff2b32d8f51a491eb737e09 100644 (file)
@@ -76,7 +76,11 @@ planned_=none
 diag_ ()
 (
   set +x
-  test $# -eq 0 || echo "$diag_string_ $*"
+  test $# -eq 0 || while IFS= read -r line; do
+    echo "$diag_string_ $line"
+  done <<EOF
+$*
+EOF
 )
 
 # Used by the 'diag_' function above.  User-overridable.