On 23/05/2023 18:06, Ross Burton wrote:
On 17 May 2023, at 17:29, Peter Hoyes via lists.openembedded.org
<[email protected]> wrote:
The testdata.json file generated as part of the rootfs postprocess
commands contains almost all Bitbake variables and is used by OEQA test
cases to inspect the build environment. However it is only regenerated
when the rootfs task is otherwise retriggered, complicating the process
of developing OEQA test cases.
I’m about to run for dinner, but would it make more sense for this function to
be a separate task inside testimage.bbclass that happens after rootfs? This
will stop the explosion of variable dependencies causing rootfs to re-run.
Ross
When running testimage under bitbake, would it make sense to simply do:
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -350,7 +350,7 @@ def testimage_main(d):
d.getVar("TEST_SERVER_IP"), **target_kwargs)
# test context
- tc = OERuntimeTestContext(td, logger, target, host_dumper,
+ tc = OERuntimeTestContext(d, logger, target, host_dumper,
image_packages, extract_dir)
# Load tests before starting the target
(and a few other associated tidy-ups)
Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181687):
https://lists.openembedded.org/g/openembedded-core/message/181687
Mute This Topic: https://lists.openembedded.org/mt/98951993/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-