[PATCH] test: Print the number of the test along with its name
authorAustin Clements <amdragon@MIT.EDU>
Tue, 4 Mar 2014 06:40:08 +0000 (01:40 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:19 +0000 (10:00 -0800)
bb/07a49a1d9596217616d2d77848c112ddfa577b [new file with mode: 0644]

diff --git a/bb/07a49a1d9596217616d2d77848c112ddfa577b b/bb/07a49a1d9596217616d2d77848c112ddfa577b
new file mode 100644 (file)
index 0000000..999085a
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 225A9431FBD\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Mar 2014 22:40:25 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id vxGSeba3X3kF for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Mar 2014 22:40:21 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu\r
+       [18.7.68.37])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 145CF431FBC\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Mar 2014 22:40:20 -0800 (PST)\r
+X-AuditID: 12074425-f79906d000000cf9-da-531575525887\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id D3.78.03321.25575135; Tue,  4 Mar 2014 01:40:18 -0500 (EST)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s246eFrH024121; \r
+       Tue, 4 Mar 2014 01:40:15 -0500\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s246eDok008583\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Tue, 4 Mar 2014 01:40:15 -0500\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1WKj1R-00088S-9N; Tue, 04 Mar 2014 01:40:13 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] test: Print the number of the test along with its name\r
+Date: Tue,  4 Mar 2014 01:40:08 -0500\r
+Message-Id: <1393915208-31237-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsUixCmqrBtUKhps0D9P3uL6zZnMDowez1bd\r
+       Yg5gjOKySUnNySxLLdK3S+DKOHfjIUvBV9aK90+eMDcwvmbpYuTkkBAwkXiw9Tk7hC0mceHe\r
+       erYuRi4OIYHZTBJH//YzQTgbGCUedJ1igXBuM0kc39LPCuHMZZT49/cC2Cw2AQ2JbfuXM4LY\r
+       IgLSEjvvzgYq4uBgFlCT+NOlAmIKC7hLrL5UCVLBIqAq0Xl/NiNImFfAQeJ7fzLEEUoSC09t\r
+       Y53AyLuAkWEVo2xKbpVubmJmTnFqsm5xcmJeXmqRroVebmaJXmpK6SZGUAiwu6juYJxwSOkQ\r
+       owAHoxIP74xpIsFCrIllxZW5hxglOZiURHmrS0SDhfiS8lMqMxKLM+KLSnNSiw8xSnAwK4nw\r
+       yukD5XhTEiurUovyYVLSHCxK4ry1Fr+ChATSE0tSs1NTC1KLYLIyHBxKErxzi4EaBYtS01Mr\r
+       0jJzShDSTBycIMN5gIYrgSzmLS5IzC3OTIfIn2JUlBLn7QVpFgBJZJTmwfXCYvQVozjQK8K8\r
+       ViDtPMD4hut+BTSYCWiwmZ8IyOCSRISUVAMjx6bLz5dJNS2qzOIoumN4pEfky9W6RQ+41tdd\r
+       uFoe+1Hykd6T7o6EDX5hW+7OCyo83/Pznbnh0hObRbvdLB8uuBFgpd2VFZdaviSE5c3xhAnu\r
+       29dFHtkzdZ38gbWv502R/iSacoN7cVljaPT7wBkb47c47SqurvValHclJe0uy7RIhyId/cvT\r
+       lFiKMxINtZiLihMBnTu4yKwCAAA=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Tue, 04 Mar 2014 06:40:25 -0000\r
+\r
+Previously, we stripped the "Tnnn-" part from the test name when\r
+printing its description at the beginning of each test.  However, this\r
+makes it difficult to find the source script for a test (e.g., when a\r
+test fails).  Put this prefix back.\r
+---\r
+ test/test-lib.sh | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+index 78af170..9dad126 100644\r
+--- a/test/test-lib.sh\r
++++ b/test/test-lib.sh\r
+@@ -196,7 +196,7 @@ print_test_description ()\r
+ {\r
+       test -z "$test_description_printed" || return 0\r
+       echo\r
+-      echo $this_test_bare: "Testing ${test_description}"\r
++      echo $this_test: "Testing ${test_description}"\r
+       test_description_printed=1\r
+ }\r
+ if [ -z "$NOTMUCH_TEST_QUIET" ]\r
+-- \r
+1.8.4.rc3\r
+\r