On Thu, Aug 6, 2015 at 8:43 PM, Liu, Sharron <sharron....@intel.com> wrote:
> Thanks for your inputs. I tested my case with poky master which includes > the two commitments you mentioned: > > > https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d2023c34e4c3735d919c35d80daf991aab579500 > > > https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=51d760e2a7e22f1b07608fc925da343e56a9ae74 > > In my observation it still failed at my case. > > > > In my test case I have: > > poky_root/meta-mylayer/lib/oeqa/selftest/subdirs/mytest.py > > > > I type: > > "oe-selftest --list-modules" > > And I expect “subdirs.mytest” being listed. > > > > I type: > > "oe-selftest --run-tests subdirs.mytest" > > And I expect “mytest” being run. > > > > This case still failed without my patch. Attached the log file for your > ref. > Sounds like you didn't properly set up your python packages. It has to be possible to import your tests from python, which is not the case unless __init__.py exists at the root of each python package. oeqa.selftest is a python namespace package. Copy poky/meta/lib/oeqa/selftest/__init__.py to poky_root/meta-mylayer/lib/oeqa/selftest/, and either also copy it to poky_root/meta-mylayer/lib/oeqa/selftest/subdirs/ or touch poky_root/meta-mylayer/lib/oeqa/selftest/subdirs/__init__.py. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core