mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f58228f2b8
commit
735656bf62
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user