diff options
author | Beth Flanagan <elizabeth.flanagan@intel.com> | 2011-08-17 04:38:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-17 15:23:14 +0100 |
commit | 0671cf3b686d5b7ba3cb1af6f5a81fce4dde89c2 (patch) | |
tree | 566f70af2ee94d2d636646fbe7d7b778817b1a31 /meta | |
parent | 718e07647dc0529e28bbc031eadc612f05998774 (diff) | |
download | poky-0671cf3b686d5b7ba3cb1af6f5a81fce4dde89c2.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/buildstats.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 939e3af603..55cbb3cee3 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -138,9 +138,10 @@ def write_task_data(status, logfile, dev, e): | |||
138 | for key in sorted(diskdata.iterkeys()): | 138 | for key in sorted(diskdata.iterkeys()): |
139 | file.write(key + ": " + diskdata[key] + "\n") | 139 | file.write(key + ": " + diskdata[key] + "\n") |
140 | if status is "passed": | 140 | if status is "passed": |
141 | file.write("Status: PASSED") | 141 | file.write("Status: PASSED \n") |
142 | else: | 142 | else: |
143 | file.write("Status: FAILED") | 143 | file.write("Status: FAILED \n") |
144 | file.write("Ended: %0.2f \n" % time.time()) | ||
144 | file.close() | 145 | file.close() |
145 | 146 | ||
146 | python run_buildstats () { | 147 | python run_buildstats () { |
@@ -149,7 +150,6 @@ python run_buildstats () { | |||
149 | import bb.data | 150 | import bb.data |
150 | import time, subprocess, platform | 151 | import time, subprocess, platform |
151 | 152 | ||
152 | |||
153 | if isinstance(e, bb.event.BuildStarted): | 153 | if isinstance(e, bb.event.BuildStarted): |
154 | ######################################################################## | 154 | ######################################################################## |
155 | # at first pass make the buildstats heriarchy and then | 155 | # at first pass make the buildstats heriarchy and then |