diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2017-09-23 19:55:56 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-24 07:58:34 (GMT) |
commit | 5d445f3416ef916c519e7d2a7796c4541e766033 (patch) | |
tree | 2027f6651d26465b7a0eaae00e749742b9cbe5d9 /t/perf/perf-lib.sh | |
parent | ffdd01076eb2a0dbc0f0543803faca9734353533 (diff) | |
download | git-5d445f3416ef916c519e7d2a7796c4541e766033.zip git-5d445f3416ef916c519e7d2a7796c4541e766033.tar.gz git-5d445f3416ef916c519e7d2a7796c4541e766033.tar.bz2 |
perf: store subsection results in "test-results/$GIT_PERF_SUBSECTION/"
When tests are run for a subsection defined in a config file, it is
better if the results for the current subsection are not overwritting
the results of a previous subsection.
So let's store the results for a subsection in a subdirectory of
"test-results/" with the subsection name.
The aggregate.perl, when it is run for a subsection, should then
aggregate the results found in "test-results/$GIT_PERF_SUBSECTION/".
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/perf-lib.sh')
-rw-r--r-- | t/perf/perf-lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh index 2f88fc1..e4c343a 100644 --- a/t/perf/perf-lib.sh +++ b/t/perf/perf-lib.sh @@ -56,6 +56,7 @@ MODERN_GIT=$GIT_BUILD_DIR/bin-wrappers/git export MODERN_GIT perf_results_dir=$TEST_OUTPUT_DIRECTORY/test-results +test -n "$GIT_PERF_SUBSECTION" && perf_results_dir="$perf_results_dir/$GIT_PERF_SUBSECTION" mkdir -p "$perf_results_dir" rm -f "$perf_results_dir"/$(basename "$0" .sh).subtests |