From f1e4b049438218347922f13de810782be0205c3d Mon Sep 17 00:00:00 2001 From: Beth Flanagan Date: Wed, 17 Aug 2011 04:38:54 -0700 Subject: buildstats.bbclass: Fixing task endtime Task endtime got left out of recent changes. Adding it back in. Signed-off-by: Beth Flanagan Signed-off-by: Richard Purdie --- meta/classes/buildstats.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/classes/buildstats.bbclass') diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 939e3af60..55cbb3cee 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 -- cgit v1.2.3