Skip to content

Commit 7022ba3

Browse files
bk2204gitster
authored andcommitted
t4029: fix test indentation
We typically indent our tests with a single tab, partially so that we can take advantage of indented heredocs. Make this change and move the quote marks to be in the typical position for our tests. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 10c636a commit 7022ba3

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

t/t4029-diff-trailing-space.sh

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ index 5f6a263..8cb8bae 100644
1818
EOF
1919
exit 1
2020

21-
test_expect_success \
22-
"$test_description" \
23-
'printf "\nx\n" > f &&
24-
git add f &&
25-
git commit -q -m. f &&
26-
printf "\ny\n" > f &&
27-
git config --bool diff.suppressBlankEmpty true &&
28-
git diff f > actual &&
29-
test_cmp exp actual &&
30-
perl -i.bak -p -e "s/^\$/ /" exp &&
31-
git config --bool diff.suppressBlankEmpty false &&
32-
git diff f > actual &&
33-
test_cmp exp actual &&
34-
git config --bool --unset diff.suppressBlankEmpty &&
35-
git diff f > actual &&
36-
test_cmp exp actual
37-
'
21+
test_expect_success "$test_description" '
22+
printf "\nx\n" > f &&
23+
git add f &&
24+
git commit -q -m. f &&
25+
printf "\ny\n" > f &&
26+
git config --bool diff.suppressBlankEmpty true &&
27+
git diff f > actual &&
28+
test_cmp exp actual &&
29+
perl -i.bak -p -e "s/^\$/ /" exp &&
30+
git config --bool diff.suppressBlankEmpty false &&
31+
git diff f > actual &&
32+
test_cmp exp actual &&
33+
git config --bool --unset diff.suppressBlankEmpty &&
34+
git diff f > actual &&
35+
test_cmp exp actual
36+
'
3837

3938
test_done

0 commit comments

Comments
 (0)