X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9001-send-email.sh;h=83f94702025276ffea4400490630e64c9eef068b;hb=9b0185ca06001219f5ffcccb5c09b9a9bb42e7c2;hp=a61da1efbdb6ac547c1d1167a4caa849b1ee4f9b;hpb=481176f752f204316ec570c8ab3fdf0c297b3259;p=git.git diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index a61da1efb..83f947020 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!