[PATCH 4/4] test: redirect man output to /dev/null
authorDavid Bremner <david@tethera.net>
Sat, 23 May 2015 20:28:47 +0000 (22:28 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:55 +0000 (14:48 -0700)
74/f26978a48a2492fc2fdb7a70580d8c0cb0f449 [new file with mode: 0644]

diff --git a/74/f26978a48a2492fc2fdb7a70580d8c0cb0f449 b/74/f26978a48a2492fc2fdb7a70580d8c0cb0f449
new file mode 100644 (file)
index 0000000..a04f552
--- /dev/null
@@ -0,0 +1,73 @@
+Return-Path: <bremner@tesseract.cs.unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E135A6DE1926\r
+ for <notmuch@notmuchmail.org>; Sat, 23 May 2015 13:31:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.277\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.277 tagged_above=-999 required=5 tests=[AWL=0.267, \r
+ T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id ZHiTP_1C9UEo for <notmuch@notmuchmail.org>;\r
+ Sat, 23 May 2015 13:31:33 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 2E9E66DE00AC\r
+ for <notmuch@notmuchmail.org>; Sat, 23 May 2015 13:31:33 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
+ id 1YwG4J-0002rp-Gn; Sat, 23 May 2015 20:30:51 +0000\r
+Received: (nullmailer pid 8767 invoked by uid 1000); Sat, 23 May 2015\r
+ 20:29:05 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/4] test: redirect man output to /dev/null\r
+Date: Sat, 23 May 2015 22:28:47 +0200\r
+Message-Id: <1432412927-8373-5-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To: <1432412927-8373-1-git-send-email-david@tethera.net>\r
+References: <1432412927-8373-1-git-send-email-david@tethera.net>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 23 May 2015 20:31:35 -0000\r
+\r
+In the case the these tests fail, they generate a bunch of output;\r
+this output is not very interesting because it is just the successful\r
+output of a man page. It does however make it hard to see what tests are actually failing, even with NOTMUCH_TEST_QUIET\r
+---\r
+ test/T010-help-test.sh | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/T010-help-test.sh b/test/T010-help-test.sh\r
+index caf8bdb..d7266ff 100755\r
+--- a/test/T010-help-test.sh\r
++++ b/test/T010-help-test.sh\r
+@@ -12,9 +12,9 @@ if [ $NOTMUCH_HAVE_MAN -eq 1 ]; then\r
+     test_expect_success 'notmuch help tag' 'notmuch help tag'\r
+ else\r
+     test_expect_success 'notmuch --help tag (man pages not available)' \\r
+-      'test_must_fail notmuch --help tag'\r
++      'test_must_fail notmuch --help tag >/dev/null'\r
+     test_expect_success 'notmuch help tag (man pages not available)' \\r
+-      'test_must_fail notmuch help tag'\r
++      'test_must_fail notmuch help tag >/dev/null'\r
+ fi\r
\r
+ test_done\r
+-- \r
+2.1.4\r
+\r