aboutsummaryrefslogtreecommitdiffstats
path: root/t/chainlint/here-doc-multi-line-command-subst.expect
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-07-17 10:47:24 -0700
committerJunio C Hamano <gitster@pobox.com>2024-07-17 10:47:25 -0700
commitb19a8c00c6e85245b1cd5c5ca2cfb7c58fb11452 (patch)
treea41f08c36bb8cf7e1f6826bf36ffc6a48d3d720f /t/chainlint/here-doc-multi-line-command-subst.expect
parent6da44da936d8256438aca9c7e027b7dc5e405b07 (diff)
parent55fe61559e8ef9e99274d9e649b0fac627a34ba9 (diff)
downloadgit-b19a8c00c6e85245b1cd5c5ca2cfb7c58fb11452.tar.gz
Merge branch 'jk/test-body-in-here-doc'
The test framework learned to take the test body not as a single string but as a here-document. * jk/test-body-in-here-doc: t/.gitattributes: ignore whitespace in chainlint expect files t: convert some here-doc test bodies test-lib: allow test snippets as here-docs chainlint.pl: add tests for test body in heredoc chainlint.pl: recognize test bodies defined via heredoc chainlint.pl: check line numbers in expected output chainlint.pl: force CRLF conversion when opening input files chainlint.pl: do not spawn more threads than we have scripts chainlint.pl: only start threads if jobs > 1 chainlint.pl: add test_expect_success call to test snippets
Diffstat (limited to 't/chainlint/here-doc-multi-line-command-subst.expect')
-rw-r--r--t/chainlint/here-doc-multi-line-command-subst.expect16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/chainlint/here-doc-multi-line-command-subst.expect b/t/chainlint/here-doc-multi-line-command-subst.expect
index b7364c82c8..41b55f6437 100644
--- a/t/chainlint/here-doc-multi-line-command-subst.expect
+++ b/t/chainlint/here-doc-multi-line-command-subst.expect
@@ -1,8 +1,8 @@
-(
- x=$(bobble <<-\END &&
- fossil
- vegetable
- END
- wiffle) ?!AMP?!
- echo $x
-)
+2 (
+3 x=$(bobble <<-\END &&
+4 fossil
+5 vegetable
+6 END
+7 wiffle) ?!AMP?!
+8 echo $x
+9 )