diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-03-13 17:26:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-14 13:37:00 -0700 |
commit | bba2a7b22fdde7a214516e93d957a950571a2026 (patch) | |
tree | 0c67322868125f28bf63d25f7e9428c8ed6875b6 /t | |
parent | 8e76bf3fc915ff9c530842123263e7147df207bb (diff) | |
download | git-bba2a7b22fdde7a214516e93d957a950571a2026.tar.gz git-bba2a7b22fdde7a214516e93d957a950571a2026.tar.xz |
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>
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 7a847ecbd..1e01a912a 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -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 |