X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9001-send-email.sh;h=e9ea33c18d8e0ffa2612e52748bbab4bf13ef513;hb=153920da5b62024c0aceef23252b82ad18e5fe22;hp=a61da1efbdb6ac547c1d1167a4caa849b1ee4f9b;hpb=5ff6a3269085c5cd425bad9f470d421a8d62f338;p=git.git diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index a61da1efb..e9ea33c18 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -25,10 +25,13 @@ test_expect_success \ git add fake.sendmail GIT_AUTHOR_NAME="A" git commit -a -m "Second."' -test_expect_success \ - 'Extract patches and send' \ - 'git format-patch -n HEAD^1 - git send-email -from="Example " --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" ./0001*txt' +test_expect_success 'Extract patches' ' + patches=`git format-patch -n HEAD^1` +' + +test_expect_success 'Send patches' ' + git send-email -from="Example " --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" $patches 2>errors +' cat >expected <<\EOF !nobody@example.com!