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>
maint
Junio C Hamano 2014-11-25 14:11:39 -08:00
parent 8d81408435
commit aca56064f4
1 changed files with 17 additions and 17 deletions

View File

@ -6,16 +6,15 @@ test_description='git send-email'
# May be altered later in the test # May be altered later in the test
PREREQ="PERL" PREREQ="PERL"


test_expect_success $PREREQ \ test_expect_success $PREREQ 'prepare reference tree' '
'prepare reference tree' \ echo "1A quick brown fox jumps over the" >file &&
'echo "1A quick brown fox jumps over the" >file &&
echo "lazy dog" >>file && echo "lazy dog" >>file &&
git add file && git add file &&
GIT_AUTHOR_NAME="A" git commit -a -m "Initial."' GIT_AUTHOR_NAME="A" git commit -a -m "Initial."
'


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


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


test_expect_success $PREREQ \ test_expect_success $PREREQ 'Verify commandline' '
'Verify commandline' \ test_cmp expected commandline1
'test_cmp expected commandline1' '


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


test_expect_success $PREREQ \ test_expect_success $PREREQ 'Verify commandline' '
'Verify commandline' \ test_cmp expected commandline1
'test_cmp expected commandline1' '


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


test_expect_success $PREREQ \ test_expect_success $PREREQ 'Verify commandline' '
'Verify commandline' \ test_cmp expected commandline1
'test_cmp expected commandline1' '


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