Skip to content

Commit 5d6bb93

Browse files
chriscoolgitster
authored andcommitted
perf/run: learn about perf.codespeedOutput
Let's make it possible to set in a config file the output format (regular or codespeed) of the perf tests. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ae7d2b commit 5d6bb93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/perf/run

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,15 @@ run_subsection () {
144144
set -- . "$@"
145145
fi
146146

147+
codespeed_opt=
148+
test "$GIT_PERF_CODESPEED_OUTPUT" = "true" && codespeed_opt="--codespeed"
149+
147150
run_dirs "$@"
148-
./aggregate.perl "$@"
151+
./aggregate.perl $codespeed_opt "$@"
149152
}
150153

154+
get_var_from_env_or_config "GIT_PERF_CODESPEED_OUTPUT" "perf" "codespeedOutput" "--bool"
155+
151156
cd "$(dirname $0)"
152157
. ../../GIT-BUILD-OPTIONS
153158

0 commit comments

Comments
 (0)