summaryrefslogtreecommitdiff
path: root/t/perf/run
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-03-28 13:52:19 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-28 13:52:19 -0700
commite0c74e6f38177dd9bfa7eb2b848530020b251149 (patch)
tree440119b55bdaded68337a3cd2427809074fa4097 /t/perf/run
parentMerge branch 'rs/strbuf-add-real-path' into maint (diff)
parentt/perf: add fallback for pre-bin-wrappers versions of git (diff)
downloadtgif-e0c74e6f38177dd9bfa7eb2b848530020b251149.tar.xz
Merge branch 'jt/perf-updates' into maint
The t/perf performance test suite was not prepared to test not so old versions of Git, but now it covers versions of Git that are not so ancient. * jt/perf-updates: t/perf: add fallback for pre-bin-wrappers versions of git t/perf: use $MODERN_GIT for all repo-copying steps t/perf: export variable used in other blocks
Diffstat (limited to 't/perf/run')
-rwxr-xr-xt/perf/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/perf/run b/t/perf/run
index e8adedadfd..c788d713ae 100755
--- a/t/perf/run
+++ b/t/perf/run
@@ -63,6 +63,9 @@ run_dirs_helper () {
unset GIT_TEST_INSTALLED
else
GIT_TEST_INSTALLED="$mydir/bin-wrappers"
+ # Older versions of git lacked bin-wrappers; fallback to the
+ # files in the root.
+ test -d "$GIT_TEST_INSTALLED" || GIT_TEST_INSTALLED=$mydir
export GIT_TEST_INSTALLED
fi
run_one_dir "$@"