summaryrefslogtreecommitdiff
path: root/t/chainlint/chained-block.test
blob: 71ef1d0b7f005247b6aab72e70ec34ce4c05a9db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"
}
'