test: Print the number of the test along with its name
authorAustin Clements <amdragon@MIT.EDU>
Tue, 4 Mar 2014 06:40:08 +0000 (01:40 -0500)
committerDavid Bremner <david@tethera.net>
Thu, 6 Mar 2014 11:46:48 +0000 (07:46 -0400)
Previously, we stripped the "Tnnn-" part from the test name when
printing its description at the beginning of each test.  However, this
makes it difficult to find the source script for a test (e.g., when a
test fails).  Put this prefix back.

test/test-lib.sh

index 78af170fe7396efd34d73a17880fe399feaa9980..9dad126513f8d70a0e688664e6326d555f5386a4 100644 (file)
@@ -196,7 +196,7 @@ print_test_description ()
 {
        test -z "$test_description_printed" || return 0
        echo
-       echo $this_test_bare: "Testing ${test_description}"
+       echo $this_test: "Testing ${test_description}"
        test_description_printed=1
 }
 if [ -z "$NOTMUCH_TEST_QUIET" ]