summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-04-25 15:11:01 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:45:07 +0100
commit735656bf6290d38be00cc0bd31e3c86f9a398e2f (patch)
tree6c353a6f090ff644fbbe89e6d4cfd10b1efadd3f /scripts/contrib
parentf58228f2b82f309061a75d60835c9ba43198b3bb (diff)
downloadpoky-735656bf6290d38be00cc0bd31e3c86f9a398e2f.tar.gz
scripts/contrib/build-perf-test.sh: change the global results format
When all builds have finished write the hostname, commit and times on a single line in the global results file (useful for merging later on files from multiple systems). Also the final cleaning should be last after writing the results. (From OE-Core rev: 582798f70bf350d2db6911eb8df333ada05f6484) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-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 ee30409569..0af2cfea0e 100755
--- a/scripts/contrib/build-perf-test.sh
+++ b/scripts/contrib/build-perf-test.sh
@@ -239,6 +239,15 @@ do_sync () {
239 sleep 3 239 sleep 3
240} 240}
241 241
242write_results() {
243 echo -n "`uname -n`,$rev," >> $globalres
244 for i in "${TIMES[@]}"; do
245 echo -n "$i," >> $globalres
246 done
247 echo >> $globalres
248 sed -i '$ s/,$//' $globalres
249}
250
242#### 251####
243 252
244# 253#
@@ -338,15 +347,10 @@ test1_p3
338test2 347test2
339test3 348test3
340 349
350# if we got til here write to global results
351write_results
352
341log "All done, cleaning up..." 353log "All done, cleaning up..."
342 354
343do_rmtmp 355do_rmtmp
344do_rmsstate 356do_rmsstate
345
346# if we got til here write to global results
347echo "$rev" >> $globalres
348for i in "${TIMES[@]}"; do
349 echo -n "$i," >> $globalres
350done
351echo >> $globalres
352sed -i '$ s/,$//' $globalres