on master help sign in
Make building bench-report respect --silent
7b0a343Adithya Kumar
benchmark/bench-report/bin/bench-runner.sh+5−2
@@ -119,7 +119,7 @@ build_report_progs() {
119 local prog
119 local prog
120 prog=$BENCH_REPORT_DIR/bin/bench-report
120 prog=$BENCH_REPORT_DIR/bin/bench-report
121 test -x $prog || die "Cannot find bench-report executable"
121 test -x $prog || die "Cannot find bench-report executable"
122− test -z "$SILENT" && echo "Using bench-report executable [$prog]"
122+ echo "Using bench-report executable [$prog]"
123 fi
123 fi
124}
124}
125
125
@@ -615,7 +615,10 @@ test -z "$SILENT" && echo "Using benchmark suites [$TARGETS]"
615
615
616# We need to build the report progs first at the current (latest) commit before
616# We need to build the report progs first at the current (latest) commit before
617# checking out any other commit for benchmarking.
617# checking out any other commit for benchmarking.
618+if test -z "$SILENT"
618−build_report_progs
619+then build_report_progs
620+else silently build_report_progs
621+fi
619
622
620#-----------------------------------------------------------------------------
623#-----------------------------------------------------------------------------
621# Build and run targets
624# Build and run targets
benchmark/bench-report/bin/build-lib.sh+5
@@ -25,6 +25,11 @@ has_item () {
25 done
25 done
26}
26}
27
27
28+# $1: command
29+silently () {
30+ eval "$1 &> /dev/null"
31+}
32+
28#------------------------------------------------------------------------------
33#------------------------------------------------------------------------------
29# target groups
34# target groups
30#------------------------------------------------------------------------------
35#------------------------------------------------------------------------------