diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:46 -0700 |
commit | cfec6133cfcd97a23ca29c7d0ad8d2961796dd52 (patch) | |
tree | 7bdee58508f7e17c33add21d8f436687206d7446 /t/chainlint/multi-line-string.test | |
parent | Merge branch 'jt/tags-to-promised-blobs-fix' (diff) | |
parent | t/chainlint.sed: drop extra spaces from regex character class (diff) | |
download | tgif-cfec6133cfcd97a23ca29c7d0ad8d2961796dd52.tar.xz |
Merge branch 'es/chain-lint-in-subshell'
Look for broken "&&" chains that are hidden in subshell, many of
which have been found and corrected.
* es/chain-lint-in-subshell:
t/chainlint.sed: drop extra spaces from regex character class
t/chainlint: add chainlint "specialized" test cases
t/chainlint: add chainlint "complex" test cases
t/chainlint: add chainlint "cuddled" test cases
t/chainlint: add chainlint "loop" and "conditional" test cases
t/chainlint: add chainlint "nested subshell" test cases
t/chainlint: add chainlint "one-liner" test cases
t/chainlint: add chainlint "whitespace" test cases
t/chainlint: add chainlint "basic" test cases
t/Makefile: add machinery to check correctness of chainlint.sed
t/test-lib: teach --chain-lint to detect broken &&-chains in subshells
Diffstat (limited to 't/chainlint/multi-line-string.test')
-rw-r--r-- | t/chainlint/multi-line-string.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/chainlint/multi-line-string.test b/t/chainlint/multi-line-string.test new file mode 100644 index 0000000000..14cb44d51c --- /dev/null +++ b/t/chainlint/multi-line-string.test @@ -0,0 +1,15 @@ +( + x="line 1 + line 2 + line 3" && +# LINT: missing "&&" on assignment + y='line 1 + line2' + foobar +) && +( +# LINT: apostrophe (in a contraction) within string not misinterpreted as +# LINT: starting multi-line single-quoted string + echo "there's nothing to see here" && + exit +) |