Skip to content

Commit

Permalink
test-lib: write test results to test-results/<basename>-<pid>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Mar 14, 2009
1 parent 8e76bf3 commit bba2a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ test_done () {
trap - EXIT
test_results_dir="$TEST_DIRECTORY/test-results"
mkdir -p "$test_results_dir"
test_results_path="$test_results_dir/${0%-*}-$$"
test_results_path="$test_results_dir/${0%.sh}-$$"

echo "total $test_count" >> $test_results_path
echo "success $test_success" >> $test_results_path
Expand Down

0 comments on commit bba2a7b

Please sign in to comment.