]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: Print the number of the test along with its name
[notmuch] / test / test-lib.sh
index 2fcaba656cffc39c51132784ca7bac79593a3a5b..9dad126513f8d70a0e688664e6326d555f5386a4 100644 (file)
@@ -27,6 +27,7 @@ shopt -u xpg_echo
 
 this_test=${0##*/}
 this_test=${this_test%.sh}
+this_test_bare=${this_test#T[0-9][0-9][0-9]-}
 
 # if --tee was passed, write the output not only to the terminal, but
 # additionally to the file test-results/$BASENAME.out, too.
@@ -1084,7 +1085,7 @@ test_emacs () {
        test -z "$missing_dependencies" || return
 
        if [ -z "$EMACS_SERVER" ]; then
-               emacs_tests="${this_test}.el"
+               emacs_tests="${this_test_bare}.el"
                if [ -f "$TEST_DIRECTORY/$emacs_tests" ]; then
                        load_emacs_tests="--eval '(load \"$emacs_tests\")'"
                else