[yocto] Adding ImageTest support to meta-mono
Alex Lennon
ajlennon at dynamicdevices.co.uk
Tue Oct 31 01:25:46 PDT 2017
Hi,
I've been adding in some simple image tests to meta-mono and things seem
to be working.
A couple of minor questions came up in the process which I can't spot
obvious answers to. Perhaps you could help?
(1) The image tests wiki
(https://wiki.yoctoproject.org/wiki/Image_tests) references use of
filesdir for resources.
e.g.
oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.c"), "/tmp/test.c")
That helper class resolves filesdir to poky/meta ...
I need my resource files to be in the meta-mono layer.
In the end just copied out the code to my layer with
|files_dir =
os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"../files"))|
However I'm wondering if there's a less hand-rolled way to get a layer
specific resources folder?
(2) The OETestID(x) decorator seems to be displayed during the test
execution.
Where is this number derived? Is it layer specific or it if I pluck a
number of of the air do I risk conflicting with other OE test IDs?
Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171031/d6aa61d0/attachment.html>
More information about the yocto
mailing list