aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/contrib/build-perf-test.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/contrib/build-perf-test.sh b/scripts/contrib/build-perf-test.sh
index ee304095698..0af2cfea0e9 100755
--- a/scripts/contrib/build-perf-test.sh
+++ b/scripts/contrib/build-perf-test.sh
@@ -239,6 +239,15 @@ do_sync () {
sleep 3
}
+write_results() {
+ echo -n "`uname -n`,$rev," >> $globalres
+ for i in "${TIMES[@]}"; do
+ echo -n "$i," >> $globalres
+ done
+ echo >> $globalres
+ sed -i '$ s/,$//' $globalres
+}
+
####
#
@@ -338,15 +347,10 @@ test1_p3
test2
test3
+# if we got til here write to global results
+write_results
+
log "All done, cleaning up..."
do_rmtmp
do_rmsstate
-
-# if we got til here write to global results
-echo "$rev" >> $globalres
-for i in "${TIMES[@]}"; do
- echo -n "$i," >> $globalres
-done
-echo >> $globalres
-sed -i '$ s/,$//' $globalres