Bug 10978 - oeqa: add validation to avoid importing build-ins
Summary: oeqa: add validation to avoid importing build-ins
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.3 M3
Assignee: Mariano Lopez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-01-26 22:41 UTC by Mariano Lopez
Modified: 2017-03-02 16:15 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariano Lopez 2017-01-26 22:41:29 UTC
With the oeqa refactor, test discovery is based in unittest's discovery so it won't append 'oeqa.runtime' to the module name. This bite us in debian with syslog test, because debian has a builtin module named syslog, and the test didn't run and not warning or error messages.

So the idea is to have a check in the loader to catch when we are trying to load a builtin, so we can rename our modules.
Comment 2 Mariano Lopez 2017-02-27 15:50:12 UTC
Rebased to master and sent v2:

Mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133411.html

Patchwork:

https://patchwork.openembedded.org/series/5546/