Patchwork [1/1] buildstats.bbclass: Fixing task endtime

login
register
mail settings
Submitter Elizabeth Flanagan
Date Aug. 17, 2011, 11:38 a.m.
Message ID <9d113e2d08c51a5829e05c87c70c70546f262ebb.1313580714.git.elizabeth.flanagan@intel.com>
Download mbox | patch
Permalink /patch/10099/
State New, archived
Headers show

Comments

Elizabeth Flanagan - Aug. 17, 2011, 11:38 a.m.
Task endtime got left out of recent changes. Adding it back in.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
---
 meta/classes/buildstats.bbclass |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Richard Purdie - Aug. 17, 2011, 2:23 p.m.
On Wed, 2011-08-17 at 04:38 -0700, Beth Flanagan wrote:
> Task endtime got left out of recent changes. Adding it back in.
> 
> Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
> ---
>  meta/classes/buildstats.bbclass |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 939e3af..55cbb3c 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -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