about summary refs log tree commit diff
path: root/t/chainlint/pipe.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/pipe.test')
-rw-r--r--t/chainlint/pipe.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/chainlint/pipe.test b/t/chainlint/pipe.test
new file mode 100644
index 000000000000..e6af4de91672
--- /dev/null
+++ b/t/chainlint/pipe.test
@@ -0,0 +1,12 @@
+(
+# LINT: no "&&" needed on line ending with "|"
+	foo |
+	bar |
+	baz &&
+
+# LINT: final line of pipe sequence ('cow') lacking "&&"
+	fish |
+	cow
+
+	sunder
+)