diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-04-25 15:11:01 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-29 14:45:07 +0100 |
commit | 735656bf6290d38be00cc0bd31e3c86f9a398e2f (patch) | |
tree | 6c353a6f090ff644fbbe89e6d4cfd10b1efadd3f /scripts | |
parent | f58228f2b82f309061a75d60835c9ba43198b3bb (diff) | |
download | poky-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')
-rwxr-xr-x | scripts/contrib/build-perf-test.sh | 20 |
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 | ||
242 | write_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 | |||
338 | test2 | 347 | test2 |
339 | test3 | 348 | test3 |
340 | 349 | ||
350 | # if we got til here write to global results | ||
351 | write_results | ||
352 | |||
341 | log "All done, cleaning up..." | 353 | log "All done, cleaning up..." |
342 | 354 | ||
343 | do_rmtmp | 355 | do_rmtmp |
344 | do_rmsstate | 356 | do_rmsstate |
345 | |||
346 | # if we got til here write to global results | ||
347 | echo "$rev" >> $globalres | ||
348 | for i in "${TIMES[@]}"; do | ||
349 | echo -n "$i," >> $globalres | ||
350 | done | ||
351 | echo >> $globalres | ||
352 | sed -i '$ s/,$//' $globalres | ||