perf: disable automatic housekeeping
Turn off automatic background maintenance for perf tests by default to avoid interference with performance measurements. Do that by using the new file t/perf/config and using it as the system config file for perf tests. Future tests intended to measure gc performance can override the setting locally or call "git gc" explicitly. This fixes a breakage in p2000 caused by gc automatically emptying the reflog due its fake dates from 2005 being older than 90 days. Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
225bc32a98
commit
be79131a53
2
t/perf/config
Normal file
2
t/perf/config
Normal file
@ -0,0 +1,2 @@
|
||||
[gc]
|
||||
auto = 0
|
@ -27,6 +27,10 @@ TEST_NO_MALLOC_CHECK=t
|
||||
|
||||
. ../test-lib.sh
|
||||
|
||||
unset GIT_CONFIG_NOSYSTEM
|
||||
GIT_CONFIG_SYSTEM="$TEST_DIRECTORY/perf/config"
|
||||
export GIT_CONFIG_SYSTEM
|
||||
|
||||
if test -n "$GIT_TEST_INSTALLED" -a -z "$PERF_SET_GIT_TEST_INSTALLED"
|
||||
then
|
||||
error "Do not use GIT_TEST_INSTALLED with the perf tests.
|
||||
|
Loading…
Reference in New Issue
Block a user