summaryrefslogtreecommitdiff
path: root/t/chainlint/multi-line-string.expect
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-08-20 11:33:53 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-20 11:33:53 -0700
commitace1f99cc8cf0a688f36c094552f90a398eb137f (patch)
tree09e7c492f8cae8e078ff91df706901308c8504fc /t/chainlint/multi-line-string.expect
parentMerge branch 'sg/t5310-empty-input-fix' (diff)
parentchainlint: add test of pathological case which triggered false positive (diff)
downloadtgif-ace1f99cc8cf0a688f36c094552f90a398eb137f.tar.xz
Merge branch 'es/chain-lint-more'
Improve built-in facility to catch broken &&-chain in the tests. * es/chain-lint-more: chainlint: add test of pathological case which triggered false positive chainlint: recognize multi-line quoted strings more robustly chainlint: let here-doc and multi-line string commence on same line chainlint: recognize multi-line $(...) when command cuddled with "$(" chainlint: match 'quoted' here-doc tags chainlint: match arbitrary here-docs tags rather than hard-coded names
Diffstat (limited to 't/chainlint/multi-line-string.expect')
-rw-r--r--t/chainlint/multi-line-string.expect10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/chainlint/multi-line-string.expect b/t/chainlint/multi-line-string.expect
index 8334c4cc8e..170cb59993 100644
--- a/t/chainlint/multi-line-string.expect
+++ b/t/chainlint/multi-line-string.expect
@@ -1,9 +1,15 @@
(
- x=line 1 line 2 line 3" &&
-?!AMP?! y=line 1 line2'
+ x="line 1 line 2 line 3" &&
+?!AMP?! y='line 1 line2'
foobar
>) &&
(
echo "there's nothing to see here" &&
exit
+>) &&
+(
+ echo "xyz" "abc def ghi" &&
+ echo 'xyz' 'abc def ghi' &&
+ echo 'xyz' "abc def ghi" &&
+ barfoo
>)