@matheusbsbs / matheus-bagliano / commits / cc7e81674b
Fork 0

t/t9001-send-email.sh: fix '&&' chain in some tests

t/README recommends chaining test assertions. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Antonio Ospite committed Jan 4, 2011 at 21:56 UTC cc7e81674b9fef94e64fe3e8c134f1a27ce2fa25
1 file changed +4 -4
t/t9001-send-email.sh
+4 -4
@@ -265,7 +265,7 @@ test_expect_success $PREREQ 'Author From: in message body' '
265 --to=nobody@example.com \
266 --smtp-server="$(pwd)/fake.sendmail" \
267 $patches &&
268 - sed "1,/^\$/d" < msgtxt1 > msgbody1
268 + sed "1,/^\$/d" < msgtxt1 > msgbody1 &&
269 grep "From: A <author@example.com>" msgbody1
270 '
271
@@ -276,7 +276,7 @@ test_expect_success $PREREQ 'Author From: not in message body' '
276 --to=nobody@example.com \
277 --smtp-server="$(pwd)/fake.sendmail" \
278 $patches &&
279 - sed "1,/^\$/d" < msgtxt1 > msgbody1
279 + sed "1,/^\$/d" < msgtxt1 > msgbody1 &&
280 ! grep "From: A <author@example.com>" msgbody1
281 '
282
@@ -298,7 +298,7 @@ test_expect_success $PREREQ 'Invalid In-Reply-To' '
298 --in-reply-to=" " \
299 --smtp-server="$(pwd)/fake.sendmail" \
300 $patches \
301 - 2>errors
301 + 2>errors &&
302 ! grep "^In-Reply-To: < *>" msgtxt1
303 '
304
@@ -617,7 +617,7 @@ EOF
617 "
618
619 test_expect_success $PREREQ '--suppress-cc=sob' '
620 - git config --unset sendemail.cccmd
620 + test_might_fail git config --unset sendemail.cccmd &&
621 test_suppression sob
622 '
623