summaryrefslogtreecommitdiff
path: root/t/chainlint/bash-array.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/bash-array.expect
parent6da44da936d8256438aca9c7e027b7dc5e405b07 (diff)
parent55fe61559e8ef9e99274d9e649b0fac627a34ba9 (diff)
downloadgit-b19a8c00c6e85245b1cd5c5ca2cfb7c58fb11452.tar.xz
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/bash-array.expect')
-rw-r--r--t/chainlint/bash-array.expect20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/chainlint/bash-array.expect b/t/chainlint/bash-array.expect
index 4c34eaee45..435dc8bdc8 100644
--- a/t/chainlint/bash-array.expect
+++ b/t/chainlint/bash-array.expect
@@ -1,10 +1,10 @@
-(
- foo &&
- bar=(gumbo stumbo wumbo) &&
- baz
-) &&
-(
- foo &&
- bar=${#bar[@]} &&
- baz
-)
+2 (
+3 foo &&
+4 bar=(gumbo stumbo wumbo) &&
+5 baz
+6 ) &&
+7 (
+8 foo &&
+9 bar=${#bar[@]} &&
+10 baz
+11 )