[PATCH v2] test: NOTMUCH_SKIP_TESTS accepts test names with or without Tddd- prefix
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 4 Mar 2014 20:38:21 +0000 (22:38 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:20 +0000 (10:00 -0800)
7d/a1983f52b457169018ffc42b52c182383747b8 [new file with mode: 0644]

diff --git a/7d/a1983f52b457169018ffc42b52c182383747b8 b/7d/a1983f52b457169018ffc42b52c182383747b8
new file mode 100644 (file)
index 0000000..f265416
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <too@guru-group.fi>\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 7C8FA431FBD\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Mar 2014 12:38:38 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 vt544VqbyNdY for <notmuch@notmuchmail.org>;\r
+       Tue,  4 Mar 2014 12:38:28 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8B525431FBF\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Mar 2014 12:38:28 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id ABE3510024B; Tue,  4 Mar 2014 22:38:22 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2] test: NOTMUCH_SKIP_TESTS accepts test names with or\r
+       without Tddd- prefix\r
+Date: Tue,  4 Mar 2014 22:38:21 +0200\r
+Message-Id: <1393965501-16626-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+In-Reply-To: <1393957666-9684-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1393957666-9684-1-git-send-email-tomi.ollila@iki.fi>\r
+Cc: tomi.ollila@iki.fi\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 20:38:38 -0000\r
+\r
+The test names assigned to NOTMUCH_SKIP_TESTS variable can now be given\r
+with or without the Tddd- prefix for tester convenience:\r
+\r
+The test name without Tddd -prefix stays constant even when test filenames\r
+are renumbered.\r
+\r
+The test name with Tddd -prefix is printed out when tests run.\r
+---\r
+\r
+this obsoletes id:1393957666-9684-1-git-send-email-tomi.ollila@iki.fi\r
+\r
+ test/test-lib.sh | 12 ++++++++++++\r
+ 1 file changed, 12 insertions(+)\r
+\r
+diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+index 78af170..306ad01 100644\r
+--- a/test/test-lib.sh\r
++++ b/test/test-lib.sh\r
+@@ -825,6 +825,12 @@ test_skip () {\r
+               case $this_test.$test_count in\r
+               $skp)\r
+                       to_skip=t\r
++                      break\r
++              esac\r
++              case $this_test_bare.$test_count in\r
++              $skp)\r
++                      to_skip=t\r
++                      break\r
+               esac\r
+       done\r
+       if test -z "$to_skip" && test -n "$prereq" &&\r
+@@ -1207,6 +1213,12 @@ do\r
+               case "$this_test" in\r
+               $skp)\r
+                       to_skip=t\r
++                      break\r
++              esac\r
++              case "$this_test_bare" in\r
++              $skp)\r
++                      to_skip=t\r
++                      break\r
+               esac\r
+       done\r
+       case "$to_skip" in\r
+-- \r
+1.8.5.3\r
+\r