mirror of
https://github.com/git/git
synced 2024-08-28 20:20:07 +00:00
![Eric Sunshine](/assets/img/avatar_default.png)
The chainlint self-test code snippets are supposed to represent the body of a test_expect_success() or test_expect_failure(), yet the contents of a few tests would have caused the shell to report syntax errors had they been real test bodies due to the mix of single- and double-quotes. Although chainlint.sed, with its simplistic heuristics, is blind to this problem, a future more robust chainlint implementation might not have such a limitation. Therefore, stop mixing quote types haphazardly in those tests and unify quoting throughout. While at it, drop chunks of tests which merely repeat what is already tested elsewhere but with alternative quotes. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
31 lines
499 B
Plaintext
31 lines
499 B
Plaintext
# LINT: stitch together incomplete \-ending lines
|
|
# LINT: swallow here-doc to avoid false positives in content
|
|
boodle wobba \
|
|
gorgo snoot \
|
|
wafta snurb <<EOF &&
|
|
quoth the raven,
|
|
nevermore...
|
|
EOF
|
|
|
|
# LINT: swallow here-doc with arbitrary tag
|
|
cat <<-Arbitrary_Tag_42 >foo &&
|
|
snoz
|
|
boz
|
|
woz
|
|
Arbitrary_Tag_42
|
|
|
|
# LINT: swallow "quoted" here-doc
|
|
cat <<"zump" >boo &&
|
|
snoz
|
|
boz
|
|
woz
|
|
zump
|
|
|
|
# LINT: swallow here-doc (EOF is last line of test)
|
|
horticulture <<\EOF
|
|
gomez
|
|
morticia
|
|
wednesday
|
|
pugsly
|
|
EOF
|