[PATCH v2] test: NOTMUCH_SKIP_TESTS accepts test names with or without Tddd- prefix

Tomi Ollila tomi.ollila at iki.fi
Tue Mar 4 12:38:21 PST 2014


The test names assigned to NOTMUCH_SKIP_TESTS variable can now be given
with or without the Tddd- prefix for tester convenience:

The test name without Tddd -prefix stays constant even when test filenames
are renumbered.

The test name with Tddd -prefix is printed out when tests run.
---

this obsoletes id:1393957666-9684-1-git-send-email-tomi.ollila at iki.fi

 test/test-lib.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 78af170..306ad01 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -825,6 +825,12 @@ test_skip () {
 		case $this_test.$test_count in
 		$skp)
 			to_skip=t
+			break
+		esac
+		case $this_test_bare.$test_count in
+		$skp)
+			to_skip=t
+			break
 		esac
 	done
 	if test -z "$to_skip" && test -n "$prereq" &&
@@ -1207,6 +1213,12 @@ do
 		case "$this_test" in
 		$skp)
 			to_skip=t
+			break
+		esac
+		case "$this_test_bare" in
+		$skp)
+			to_skip=t
+			break
 		esac
 	done
 	case "$to_skip" in
-- 
1.8.5.3



More information about the notmuch mailing list