[PATCH 1/1] test: use 'bare' test names in NOTMUCH_SKIP_TESTS comparisons

Tomi Ollila tomi.ollila at iki.fi
Tue Mar 4 10:27:46 PST 2014


The 'bare' part of test file name stays constant even when the filename
prefixes of test scripts are renumbered.
Also this change makes test skipping behave like documented.
---
 test/test-lib.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index a1c0f27..ac6dc77 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -826,7 +826,7 @@ test_skip () {
 	to_skip=
 	for skp in $NOTMUCH_SKIP_TESTS
 	do
-		case $this_test.$test_count in
+		case $this_test_bare.$test_count in
 		$skp)
 			to_skip=t
 		esac
@@ -1208,7 +1208,7 @@ do
 	to_skip=
 	for skp in $NOTMUCH_SKIP_TESTS
 	do
-		case "$this_test" in
+		case "$this_test_bare" in
 		$skp)
 			to_skip=t
 		esac
-- 
1.8.0



More information about the notmuch mailing list