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 <gitster@pobox.com>

Junio C Hamano committed Nov 25, 2014 at 14:11 UTC aca56064f4eebe2ba46a55908b5cfa3b4ffa6785
1 file changed +17 -17
t/t9001-send-email.sh
+17 -17
@@ -6,16 +6,15 @@ test_description='git send-email'
6 # May be altered later in the test
7 PREREQ="PERL"
8
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 &&
11 echo "lazy dog" >>file &&
12 git add file &&
14 - GIT_AUTHOR_NAME="A" git commit -a -m "Initial."'
13 + GIT_AUTHOR_NAME="A" git commit -a -m "Initial."
14 +'
15
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"
18 echo shift
19 echo output=1
20 echo "while test -f commandline\$output; do output=\$((\$output+1)); done"
@@ -27,7 +26,8 @@ test_expect_success $PREREQ \
26 ) >fake.sendmail &&
27 chmod +x ./fake.sendmail &&
28 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 +'
31
32 clean_fake_sendmail() {
33 rm -f commandline* msgtxt*
@@ -94,9 +94,9 @@ cat >expected <<\EOF
94 EOF
95 '
96
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 +'
100
101 test_expect_success $PREREQ 'Send patches with --envelope-sender' '
102 clean_fake_sendmail &&
@@ -114,9 +114,9 @@ cat >expected <<\EOF
114 EOF
115 '
116
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 +'
120
121 test_expect_success $PREREQ 'Send patches with --envelope-sender=auto' '
122 clean_fake_sendmail &&
@@ -134,9 +134,9 @@ cat >expected <<\EOF
134 EOF
135 '
136
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 +'
140
141 test_expect_success $PREREQ 'setup expect' "
142 cat >expected-show-all-headers <<\EOF