perf/run: add calls to get_var_from_env_or_config()
These calls make it possible to have the make command or the make options in a config file, instead of in environment variables. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Sep 23, 2017 at 19:55 UTC
948e22e2bb8a7786e12f5564238b68419a9419b7
1 file changed
+3
t/perf/run
+3
@@ -116,6 +116,9 @@ export GIT_PERF_REPEAT_COUNT
116
get_var_from_env_or_config "GIT_PERF_DIRS_OR_REVS" "perf.dirsOrRevs"
117
set -- $GIT_PERF_DIRS_OR_REVS "$@"
118
119
+get_var_from_env_or_config "GIT_PERF_MAKE_COMMAND" "perf.makeCommand"
120
+get_var_from_env_or_config "GIT_PERF_MAKE_OPTS" "perf.makeOpts"
121
+
122
GIT_PERF_AGGREGATING_LATER=t
123
export GIT_PERF_AGGREGATING_LATER
124