buildstats.bbclass: Fixing task endtime
Task endtime got left out of recent changes. Adding it back in. (From OE-Core rev: f1e4b049438218347922f13de810782be0205c3d) Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
718e07647d
commit
0671cf3b68
|
@ -138,9 +138,10 @@ def write_task_data(status, logfile, dev, e):
|
||||||
for key in sorted(diskdata.iterkeys()):
|
for key in sorted(diskdata.iterkeys()):
|
||||||
file.write(key + ": " + diskdata[key] + "\n")
|
file.write(key + ": " + diskdata[key] + "\n")
|
||||||
if status is "passed":
|
if status is "passed":
|
||||||
file.write("Status: PASSED")
|
file.write("Status: PASSED \n")
|
||||||
else:
|
else:
|
||||||
file.write("Status: FAILED")
|
file.write("Status: FAILED \n")
|
||||||
|
file.write("Ended: %0.2f \n" % time.time())
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
python run_buildstats () {
|
python run_buildstats () {
|
||||||
|
@ -149,7 +150,6 @@ python run_buildstats () {
|
||||||
import bb.data
|
import bb.data
|
||||||
import time, subprocess, platform
|
import time, subprocess, platform
|
||||||
|
|
||||||
|
|
||||||
if isinstance(e, bb.event.BuildStarted):
|
if isinstance(e, bb.event.BuildStarted):
|
||||||
########################################################################
|
########################################################################
|
||||||
# at first pass make the buildstats heriarchy and then
|
# at first pass make the buildstats heriarchy and then
|
||||||
|
|
Loading…
Reference in New Issue