mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
oeqa/selftest/oescripts: Ensure buildstats is present
These tests need buildstats to be configured. Add that piece of config in case it isn't by default. (From OE-Core rev: d1962257783ed9348be9fdd2db20b7d2b7c37ce1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -18,6 +18,10 @@ class OEPybootchartguyTests(OESelftestTestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
|
cls.write_config(cls,
|
||||||
|
"""
|
||||||
|
INHERIT += "buildstats"
|
||||||
|
""")
|
||||||
bitbake("core-image-minimal -c rootfs -f")
|
bitbake("core-image-minimal -c rootfs -f")
|
||||||
cls.tmpdir = get_bb_var('TMPDIR')
|
cls.tmpdir = get_bb_var('TMPDIR')
|
||||||
cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1]
|
cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user