зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
8e76bf3fc9
Коммит
bba2a7b22f
|
@ -464,7 +464,7 @@ test_done () {
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
test_results_dir="$TEST_DIRECTORY/test-results"
|
test_results_dir="$TEST_DIRECTORY/test-results"
|
||||||
mkdir -p "$test_results_dir"
|
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 "total $test_count" >> $test_results_path
|
||||||
echo "success $test_success" >> $test_results_path
|
echo "success $test_success" >> $test_results_path
|
||||||
|
|
Загрузка…
Ссылка в новой задаче