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


-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to