From: Thomas Rast Date: Mon, 12 Mar 2012 15:10:01 GMT Subject: [PATCH 05/11] perf: suppress aggregation also in 'run' Message-ID: In-Reply-To: perf-lib.sh avoids calling aggregate.perl on the results if $GIT_PERF_AGGREGATING_LATER is set. 'run' uses this to suppress the table for test runs, so that it can display them all together at the end. However, other users may want to do the same while still benefiting from run's facilities such as automatic compilation/testing of arbitrary revisions. So teach 'run' the same interface: when GIT_PERF_AGGREGATING_LATER is set, do not call aggregate.perl. Signed-off-by: Thomas Rast --- t/perf/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/perf/run b/t/perf/run index cfd7012..886290b 100755 --- a/t/perf/run +++ b/t/perf/run @@ -69,6 +69,7 @@ run_dirs () { done } +orig_GIT_AGGREGATING_LATER=$GIT_PERF_AGGREGATING_LATER GIT_PERF_AGGREGATING_LATER=t export GIT_PERF_AGGREGATING_LATER @@ -79,4 +80,4 @@ if test $# = 0 -o "$1" = -- -o -f "$1"; then set -- . "$@" fi run_dirs "$@" -./aggregate.perl "$@" +test -z "$orig_GIT_AGGREGATING_LATER" && ./aggregate.perl "$@" -- 1.7.10.rc0.230.g16d90