Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2022-10-27 15:36:28 +0300
committerToon Claes <toon@gitlab.com>2022-11-09 17:10:03 +0300
commit3c1d429140ceab5a521c6be1fc2a3bf6f18fd378 (patch)
treec2bf9ffdb328fa4528028679291e7229b54dfa4d /Makefile
parent6b198af0c271cccede1e7d8114367be81faa33b9 (diff)
Makefile: Ensure benchmark.git exists when running bench
The 'bench' target relied on Make handling the prerequisites in order, never the less, this is not guaranteed. To fix this, specify the recipe explicitly so all prerequisites are met before the benchmark is started.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b787519b3..663fcde98 100644
--- a/Makefile
+++ b/Makefile
@@ -383,7 +383,8 @@ debug-test-go: prepare-tests prepare-debug
.PHONY: test
## Run Go benchmarks.
bench: override TEST_OPTIONS := ${TEST_OPTIONS} -bench=. -run=^$
-bench: ${BENCHMARK_REPO} test-go
+bench: ${BENCHMARK_REPO} prepare-tests
+ ${Q}$(call run_go_tests)
.PHONY: test-with-proxies
test-with-proxies: override TEST_OPTIONS := ${TEST_OPTIONS} -exec ${SOURCE_DIR}/_support/bad-proxies