X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Ftest-lib.sh;h=78af170fe7396efd34d73a17880fe399feaa9980;hb=28d7544ae2adfe6467c6b64a3284f5ed13f81e1a;hp=2fcaba656cffc39c51132784ca7bac79593a3a5b;hpb=79b6b0190b36f5c9f14af48a3af675d2a16a46f3;p=notmuch diff --git a/test/test-lib.sh b/test/test-lib.sh index 2fcaba65..78af170f 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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. @@ -195,7 +196,7 @@ print_test_description () { test -z "$test_description_printed" || return 0 echo - echo $this_test: "Testing ${test_description}" + echo $this_test_bare: "Testing ${test_description}" test_description_printed=1 } if [ -z "$NOTMUCH_TEST_QUIET" ] @@ -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