| Summary: | oe-selftest: unable run test case module | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [QA/Testing] Build Testing | Reporter: | Rebecca Chang <rebecca.swee.fun.chang> | ||||||
| Component: | general | Assignee: | Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | leonardo.sandoval.gonzalez, liezhi.yang, rebecca.swee.fun.chang | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 2.5 M2 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 11429 | ||||||||
| Attachments: |
|
||||||||
Leo has submitted a patch which resolves this issue: http://lists.openembedded.org/pipermail/openembedded-core/2017-December/145284.html https://patchwork.openembedded.org/patch/146449/ Created attachment 4146 [details]
Log obtained when running oe-selftest -a when the latter comes from a release tarball
(In reply to comment #2) > Created attachment 4146 [details] > Log obtained when running oe-selftest -a when the latter comes from a > release tarball ignore this attachment, this should have attached into bug 12401. Lost in bugzilland! Created attachment 4148 [details]
Proposed patch to solved test cases loading
Rebecca, I now do not have much time for patching on the YP. Would you mind testing the patch I proposed? if work, feel free to send it to the mailing list, just include a v2 next to the PATCH string at subject. Leo, sure no prob. (In reply to comment #5) > Rebecca, I now do not have much time for patching on the YP. > > Would you mind testing the patch I proposed? if work, feel free to send it > to the mailing list, just include a v2 next to the PATCH string at subject. Leo, the patch fixed the issue, but you also mentioned in the patch that it breaks 'bitbake -c testimage core-image-full-cmdline' Should I push the v2 and create another bugzilla for testimage issue? (In reply to comment #7) > (In reply to comment #5) > > Rebecca, I now do not have much time for patching on the YP. > > > > Would you mind testing the patch I proposed? if work, feel free to send it > > to the mailing list, just include a v2 next to the PATCH string at subject. > > Leo, the patch fixed the issue, but you also mentioned in the patch that it > breaks 'bitbake -c testimage core-image-full-cmdline' > > Should I push the v2 and create another bugzilla for testimage issue? no need. I have sent a v2 to the mailing list which solves what originally reported and I have also observed (bitbake -c testimage...), so now we should be fine in this area. If you look at the testimage task for this target, it runs the runtime tests which in run have underscore in their names, thus not matching the old regex. (In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #5) > > > Rebecca, I now do not have much time for patching on the YP. > > > > > > Would you mind testing the patch I proposed? if work, feel free to send it > > > to the mailing list, just include a v2 next to the PATCH string at subject. > > > > Leo, the patch fixed the issue, but you also mentioned in the patch that it > > breaks 'bitbake -c testimage core-image-full-cmdline' > > > > Should I push the v2 and create another bugzilla for testimage issue? > > no need. I have sent a v2 to the mailing list which solves what originally > reported and I have also observed (bitbake -c testimage...), so now we > should be fine in this area. If you look at the testimage task for this > target, it runs the runtime tests which in run have underscore in their > names, thus not matching the old regex. Thanks Leo, I was too busy with the on-going QA cycle. Thanks for the fix! *** Bug 12438 has been marked as a duplicate of this bug. *** Fixed in OE Core rev: 1ecf48fd286a77078451b67879a44f9c9dc7a894 |
oe-selftest is able to run all test cases with "-a" option. However, when we try to run specific selftest on specific modules, example eSDK module, we will receive bunch of tracebacks from oe-selftest script and tests are not run. $ oe-selftest -r eSDK Traceback (most recent call last): File "/media/rebeccas/yocto/poky/scripts/oe-selftest", line 70, in <module> ret = main() File "/media/rebeccas/yocto/poky/scripts/oe-selftest", line 57, in main results = args.func(logger, args) File "/media/rebeccas/yocto/poky/meta/lib/oeqa/selftest/context.py", line 253, in run rc = self._internal_run(logger, args) File "/media/rebeccas/yocto/poky/meta/lib/oeqa/selftest/context.py", line 205, in _internal_run self.tc.loadTests(self.module_paths, **self.tc_kwargs['load']) File "/media/rebeccas/yocto/poky/meta/lib/oeqa/core/context.py", line 58, in loadTests modules_required, filters) File "/media/rebeccas/yocto/poky/meta/lib/oeqa/core/loader.py", line 69, in __init__ self.modules = _built_modules_dict(modules) File "/media/rebeccas/yocto/poky/meta/lib/oeqa/core/loader.py", line 48, in _built_modules_dict module_name, class_name, test_name = m.groups() AttributeError: 'NoneType' object has no attribute 'groups'