summaryrefslogtreecommitdiff
path: root/t/chainlint/chained-block.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/chained-block.test')
-rw-r--r--t/chainlint/chained-block.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/chainlint/chained-block.test b/t/chainlint/chained-block.test
new file mode 100644
index 0000000000..71ef1d0b7f
--- /dev/null
+++ b/t/chainlint/chained-block.test
@@ -0,0 +1,13 @@
+test_expect_success 'chained-block' '
+# LINT: start of block chained to preceding command
+echo nobody home && {
+ test the doohicky
+ right now
+} &&
+
+# LINT: preceding command pipes to block on same line
+GIT_EXTERNAL_DIFF=echo git diff | {
+ read path oldfile oldhex oldmode newfile newhex newmode &&
+ test "z$oh" = "z$oldhex"
+}
+'