Skip to content

Commit 19cf57a

Browse files
chriscoolgitster
authored andcommitted
perf/run: read GIT_PERF_REPO_NAME from perf.repoName
The GIT_PERF_REPO_NAME env variable is used in the `aggregate.perl` script to set the 'environment' field in the JSON Codespeed output. Let's make it easy to set this variable by setting it in a config file. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fccec20 commit 19cf57a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/perf/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ run_subsection () {
137137
get_var_from_env_or_config "GIT_PERF_MAKE_COMMAND" "perf" "makeCommand"
138138
get_var_from_env_or_config "GIT_PERF_MAKE_OPTS" "perf" "makeOpts"
139139

140+
get_var_from_env_or_config "GIT_PERF_REPO_NAME" "perf" "repoName"
141+
export GIT_PERF_REPO_NAME
142+
140143
GIT_PERF_AGGREGATING_LATER=t
141144
export GIT_PERF_AGGREGATING_LATER
142145

0 commit comments

Comments
 (0)