mailmap: refactor mailmap parsing for non-file sources
[gitweb.git] / t / test-lib.sh
index 0334a9e8fd761b8415f7beb5d70794bc5be33dfd..f50f8341d40c6ec87565d01a263d97209fb68680 100644 (file)
@@ -389,7 +389,8 @@ test_done () {
        then
                test_results_dir="$TEST_OUTPUT_DIRECTORY/test-results"
                mkdir -p "$test_results_dir"
-               test_results_path="$test_results_dir/${0%.sh}-$$.counts"
+               base=${0##*/}
+               test_results_path="$test_results_dir/${base%.sh}-$$.counts"
 
                cat >>"$test_results_path" <<-EOF
                total $test_count