send-email: correct two tests which were going interactive
Commit c18f75a (send-email: add tests for refactored prompting, 2009-03-28) added two tests which went interactive under the dash shell. This patch corrects the issue, reported by Björn Steinbrink. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jay Soffian committed
Mar 31, 2009 at 12:22 UTC
3b3637c3f1d752e6e6d559f30cc53bbec18537ef
1 file changed
+5
-3
t/t9001-send-email.sh
+5
-3
@@ -478,7 +478,8 @@ test_expect_success 'confirm detects EOF (inform assumes y)' '
478
test_expect_success 'confirm detects EOF (auto causes failure)' '
479
CONFIRM=$(git config --get sendemail.confirm) &&
480
git config sendemail.confirm auto &&
481
- GIT_SEND_EMAIL_NOTTY=1 \
481
+ GIT_SEND_EMAIL_NOTTY=1 &&
482
+ export GIT_SEND_EMAIL_NOTTY &&
483
test_must_fail git send-email \
484
--from="Example <nobody@example.com>" \
485
--to=nobody@example.com \
@@ -492,8 +493,9 @@ test_expect_success 'confirm detects EOF (auto causes failure)' '
493
test_expect_success 'confirm doesnt loop forever' '
494
CONFIRM=$(git config --get sendemail.confirm) &&
495
git config sendemail.confirm auto &&
495
- yes "bogus" | GIT_SEND_EMAIL_NOTTY=1 \
496
- test_must_fail git send-email \
496
+ GIT_SEND_EMAIL_NOTTY=1 &&
497
+ export GIT_SEND_EMAIL_NOTTY &&
498
+ yes "bogus" | test_must_fail git send-email \
499
--from="Example <nobody@example.com>" \
500
--to=nobody@example.com \
501
--smtp-server="$(pwd)/fake.sendmail" \