]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildstats.bbclass: Fixing task endtime
authorBeth Flanagan <elizabeth.flanagan@intel.com>
Wed, 17 Aug 2011 11:38:54 +0000 (04:38 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2011 14:22:51 +0000 (15:22 +0100)
Task endtime got left out of recent changes. Adding it back in.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildstats.bbclass

index 939e3af603e168323cbef3aad295d142724bed7c..55cbb3cee3c379548508a8eeca7ecd4e1b71dc77 100644 (file)
@@ -138,9 +138,10 @@ def write_task_data(status, logfile, dev, e):
         for key in sorted(diskdata.iterkeys()):
             file.write(key + ": " + diskdata[key] + "\n")
     if status is "passed":
-           file.write("Status: PASSED")
+           file.write("Status: PASSED \n")
     else:
-        file.write("Status: FAILED")
+        file.write("Status: FAILED \n")
+    file.write("Ended: %0.2f \n" % time.time())
     file.close()
 
 python run_buildstats () {
@@ -149,7 +150,6 @@ python run_buildstats () {
     import bb.data
     import time, subprocess, platform
 
-
     if isinstance(e, bb.event.BuildStarted):
         ########################################################################
         # at first pass make the buildstats heriarchy and then