summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2017-01-03 19:57:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-07 21:20:01 (GMT)
commitc7cf956618c4af9f3151a90d7552b05767e6444f (patch)
treeea074b87fcb872c13df8b0b5d2c3d2b12c5a89d6 /t/t9001-send-email.sh
parenta274e0a036ea886a31f8b216564ab1b4a3142f6c (diff)
downloadgit-c7cf956618c4af9f3151a90d7552b05767e6444f.zip
git-c7cf956618c4af9f3151a90d7552b05767e6444f.tar.gz
git-c7cf956618c4af9f3151a90d7552b05767e6444f.tar.bz2
don't use test_must_fail with grep
test_must_fail should only be used for testing git commands. To test the failure of other commands use `!`. Reported-by: Stefan Beller <sbeller@google.com> Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 3dc4a34..0f398dd 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -50,7 +50,7 @@ test_no_confirm () {
--smtp-server="$(pwd)/fake.sendmail" \
$@ \
$patches >stdout &&
- test_must_fail grep "Send this email" stdout &&
+ ! grep "Send this email" stdout &&
>no_confirm_okay
}