[PATCH 4/4] test: redirect man output to /dev/null

Subject: [PATCH 4/4] test: redirect man output to /dev/null

Date: Sat, 23 May 2015 22:28:47 +0200

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


In the case the these tests fail, they generate a bunch of output;
this output is not very interesting because it is just the successful
output of a man page. It does however make it hard to see what tests are actually failing, even with NOTMUCH_TEST_QUIET
---
 test/T010-help-test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/T010-help-test.sh b/test/T010-help-test.sh
index caf8bdb..d7266ff 100755
--- a/test/T010-help-test.sh
+++ b/test/T010-help-test.sh
@@ -12,9 +12,9 @@ if [ $NOTMUCH_HAVE_MAN -eq 1 ]; then
     test_expect_success 'notmuch help tag' 'notmuch help tag'
 else
     test_expect_success 'notmuch --help tag (man pages not available)' \
-	'test_must_fail notmuch --help tag'
+	'test_must_fail notmuch --help tag >/dev/null'
     test_expect_success 'notmuch help tag (man pages not available)' \
-	'test_must_fail notmuch help tag'
+	'test_must_fail notmuch help tag >/dev/null'
 fi
 
 test_done
-- 
2.1.4


Thread: