]> git.ipfire.org Git - thirdparty/git.git/commit
t/chainlint/*.test: don't use invalid shell syntax
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 13 Dec 2021 06:30:45 +0000 (01:30 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Dec 2021 22:15:28 +0000 (14:15 -0800)
commit925d7304d2a5f5dda9fbe3f541338bb87083f6b2
tree2ea7dd7677b25551681ccda8a5053a938dbe7025
parente773545c7fe7eca21b134847f4fc2cbc9547fa14
t/chainlint/*.test: don't use invalid shell syntax

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
these tests would have caused the shell to report syntax errors had they
been real test bodies. Although chainlint.sed, with its simplistic
heuristics, is blind to these syntactic problems, a future more robust
chainlint implementation might not have such a limitation, so make these
snippets syntactically valid.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/chainlint/if-then-else.expect
t/chainlint/if-then-else.test
t/chainlint/subshell-here-doc.test