Skip to content

Commit aca5606

Browse files
committed
t9001: style modernisation phase #1
Don't chop test_expect_success line into pieces and concatenate with '\'. That's so 2005. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d81408 commit aca5606

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

t/t9001-send-email.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ test_description='git send-email'
66
# May be altered later in the test
77
PREREQ="PERL"
88

9-
test_expect_success $PREREQ \
10-
'prepare reference tree' \
11-
'echo "1A quick brown fox jumps over the" >file &&
9+
test_expect_success $PREREQ 'prepare reference tree' '
10+
echo "1A quick brown fox jumps over the" >file &&
1211
echo "lazy dog" >>file &&
1312
git add file &&
14-
GIT_AUTHOR_NAME="A" git commit -a -m "Initial."'
13+
GIT_AUTHOR_NAME="A" git commit -a -m "Initial."
14+
'
1515

16-
test_expect_success $PREREQ \
17-
'Setup helper tool' \
18-
'(echo "#!$SHELL_PATH"
16+
test_expect_success $PREREQ 'Setup helper tool' '
17+
(echo "#!$SHELL_PATH"
1918
echo shift
2019
echo output=1
2120
echo "while test -f commandline\$output; do output=\$((\$output+1)); done"
@@ -27,7 +26,8 @@ test_expect_success $PREREQ \
2726
) >fake.sendmail &&
2827
chmod +x ./fake.sendmail &&
2928
git add fake.sendmail &&
30-
GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
29+
GIT_AUTHOR_NAME="A" git commit -a -m "Second."
30+
'
3131

3232
clean_fake_sendmail() {
3333
rm -f commandline* msgtxt*
@@ -94,9 +94,9 @@ cat >expected <<\EOF
9494
EOF
9595
'
9696

97-
test_expect_success $PREREQ \
98-
'Verify commandline' \
99-
'test_cmp expected commandline1'
97+
test_expect_success $PREREQ 'Verify commandline' '
98+
test_cmp expected commandline1
99+
'
100100

101101
test_expect_success $PREREQ 'Send patches with --envelope-sender' '
102102
clean_fake_sendmail &&
@@ -114,9 +114,9 @@ cat >expected <<\EOF
114114
EOF
115115
'
116116

117-
test_expect_success $PREREQ \
118-
'Verify commandline' \
119-
'test_cmp expected commandline1'
117+
test_expect_success $PREREQ 'Verify commandline' '
118+
test_cmp expected commandline1
119+
'
120120

121121
test_expect_success $PREREQ 'Send patches with --envelope-sender=auto' '
122122
clean_fake_sendmail &&
@@ -134,9 +134,9 @@ cat >expected <<\EOF
134134
EOF
135135
'
136136

137-
test_expect_success $PREREQ \
138-
'Verify commandline' \
139-
'test_cmp expected commandline1'
137+
test_expect_success $PREREQ 'Verify commandline' '
138+
test_cmp expected commandline1
139+
'
140140

141141
test_expect_success $PREREQ 'setup expect' "
142142
cat >expected-show-all-headers <<\EOF

0 commit comments

Comments
 (0)