summaryrefslogtreecommitdiffstats
path: root/t/chainlint/subshell-here-doc.test
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2021-12-13 07:30:45 +0100
committerJunio C Hamano <gitster@pobox.com>2021-12-13 23:15:28 +0100
commit925d7304d2a5f5dda9fbe3f541338bb87083f6b2 (patch)
tree2ea7dd7677b25551681ccda8a5053a938dbe7025 /t/chainlint/subshell-here-doc.test
parentThe second batch (diff)
downloadgit-925d7304d2a5f5dda9fbe3f541338bb87083f6b2.tar.xz
git-925d7304d2a5f5dda9fbe3f541338bb87083f6b2.zip
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>
Diffstat (limited to '')
-rw-r--r--t/chainlint/subshell-here-doc.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/chainlint/subshell-here-doc.test b/t/chainlint/subshell-here-doc.test
index f6b3ba4214..0cce907ba8 100644
--- a/t/chainlint/subshell-here-doc.test
+++ b/t/chainlint/subshell-here-doc.test
@@ -11,7 +11,7 @@
# LINT: missing "&&" on 'cat'
cat <<EOF >bip
fish fly high
- EOF
+EOF
# LINT: swallow here-doc (EOF is last line of subshell)
echo <<-\EOF >bop