]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildstats-summary/toaster: Cope with removal of get_bn()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2015 13:50:04 +0000 (13:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2015 13:50:54 +0000 (13:50 +0000)
The buildstats changes removed the no longer needed get_bn() function,
replace this with references to BUILDNAME.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildstats-summary.bbclass
meta/classes/toaster.bbclass

index 05ead9fdbf133de04af9357ee6b43eb7ac8dd0b6..d73350b940175f3eb245656d13d773516017d010 100644 (file)
@@ -3,8 +3,7 @@ python buildstats_summary () {
     import collections
     import os.path
 
-    bn = get_bn(e)
-    bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
+    bsdir = e.data.expand("${BUILDSTATS_BASE}/${BUILDNAME}")
     if not os.path.exists(bsdir):
         return
 
index 7af495ed7c9b2e8301396d00a69e25c26b471418..4fb52a969ec44fe59f4a2fa5ad8f08011aedce08 100644 (file)
@@ -189,9 +189,7 @@ python toaster_collect_task_stats() {
         lock = bb.utils.lockfile(e.data.expand("${TOPDIR}/toaster.lock"), False, True)
 
         with open(os.path.join(e.data.getVar('BUILDSTATS_BASE', True), "toasterstatlist"), "a") as fout:
-            bn = get_bn(e)
-            bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
-            taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
+            taskdir = e.data.expand("${BUILDSTATS_BASE}/${BUILDNAME}/${PF}")
             fout.write("%s::%s::%s::%s\n" % (e.taskfile, e.taskname, os.path.join(taskdir, e.task), e.data.expand("${PN}")))
 
         bb.utils.unlockfile(lock)