Skip to content

Commit bba2a7b

Browse files
dschogitster
authored andcommitted
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>
1 parent 8e76bf3 commit bba2a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ test_done () {
464464
trap - EXIT
465465
test_results_dir="$TEST_DIRECTORY/test-results"
466466
mkdir -p "$test_results_dir"
467-
test_results_path="$test_results_dir/${0%-*}-$$"
467+
test_results_path="$test_results_dir/${0%.sh}-$$"
468468

469469
echo "total $test_count" >> $test_results_path
470470
echo "success $test_success" >> $test_results_path

0 commit comments

Comments
 (0)