@matheusbsbs / matheus-bagliano / commits / bba2a7b22f
Fork 0

test-lib: write test results to test-results/<basename>-<pid>

The earlier code meant to attempt to strip everything except the test number, but only stripped the part starting with the last dash. However, there is no reason why we should not use the whole basename. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Mar 13, 2009 at 17:26 UTC bba2a7b22fdde7a214516e93d957a950571a2026
1 file changed +1 -1
t/test-lib.sh
+1 -1
@@ -464,7 +464,7 @@ test_done () {
464 trap - EXIT
465 test_results_dir="$TEST_DIRECTORY/test-results"
466 mkdir -p "$test_results_dir"
467 - test_results_path="$test_results_dir/${0%-*}-$$"
467 + test_results_path="$test_results_dir/${0%.sh}-$$"
468
469 echo "total $test_count" >> $test_results_path
470 echo "success $test_success" >> $test_results_path