Bug 10978

Summary: oeqa: add validation to avoid importing build-ins
Product: [QA/Testing] Runtime Testing Reporter: Mariano Lopez <mariano.lopez>
Component: generalAssignee: Mariano Lopez <mariano.lopez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: anibal.limon, benjamin.esquivel, leonardo.sandoval.gonzalez
Version: 2.3   
Target Milestone: 2.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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/