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)
committerDavid Bremner <david@tethera.net>
Sun, 9 Mar 2014 13:09:26 +0000 (10:09 -0300)
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.

test/test-lib.sh

index 9dad126513f8d70a0e688664e6326d555f5386a4..9222689d5199bf78774ca8ae80367ded6a87b520 100644 (file)
@@ -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