mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
buildstats-summary/toaster: Cope with removal of get_bn()
The buildstats changes removed the no longer needed get_bn() function, replace this with references to BUILDNAME. (From OE-Core rev: e1a37899da56014693f08d1c39cb6ec0a4ed2bf4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -3,8 +3,7 @@ python buildstats_summary () {
|
|||||||
import collections
|
import collections
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
bn = get_bn(e)
|
bsdir = e.data.expand("${BUILDSTATS_BASE}/${BUILDNAME}")
|
||||||
bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
|
|
||||||
if not os.path.exists(bsdir):
|
if not os.path.exists(bsdir):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -189,9 +189,7 @@ python toaster_collect_task_stats() {
|
|||||||
lock = bb.utils.lockfile(e.data.expand("${TOPDIR}/toaster.lock"), False, True)
|
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:
|
with open(os.path.join(e.data.getVar('BUILDSTATS_BASE', True), "toasterstatlist"), "a") as fout:
|
||||||
bn = get_bn(e)
|
taskdir = e.data.expand("${BUILDSTATS_BASE}/${BUILDNAME}/${PF}")
|
||||||
bsdir = os.path.join(e.data.getVar('BUILDSTATS_BASE', True), bn)
|
|
||||||
taskdir = os.path.join(bsdir, e.data.expand("${PF}"))
|
|
||||||
fout.write("%s::%s::%s::%s\n" % (e.taskfile, e.taskname, os.path.join(taskdir, e.task), e.data.expand("${PN}")))
|
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)
|
bb.utils.unlockfile(lock)
|
||||||
|
|||||||
Reference in New Issue
Block a user