summaryrefslogtreecommitdiffstats
path: root/t/chainlint/dqstring-no-interpolate.test
blob: d2f4219cbbbcd70da5ab4d29fcf8120b5fc23d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# LINT: regex dollar-sign eol anchor in double-quoted string not special
grep "^ ! \[rejected\][ ]*$BRANCH -> $BRANCH (non-fast-forward)$" out &&

# LINT: escaped "$" not mistaken for variable expansion
grep "^\\.git\$" output.txt &&

'"
(
	cd client$version &&
# LINT: escaped dollar-sign in double-quoted test body
	GIT_TEST_PROTOCOL_VERSION=$version git fetch-pack --no-progress .. \$(cat ../input)
) >output &&
	cut -d ' ' -f 2 <output | sort >actual &&
	test_cmp expect actual
"'