summaryrefslogtreecommitdiffstats
path: root/t/chainlint/chained-block.test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--t/chainlint/chained-block.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/chainlint/chained-block.test b/t/chainlint/chained-block.test
new file mode 100644
index 0000000..86f81ec
--- /dev/null
+++ b/t/chainlint/chained-block.test
@@ -0,0 +1,11 @@
+# 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"
+}