Bug 10231 - oeqa: Refactor code to avoid dependencies on bitbake datastore
Summary: oeqa: Refactor code to avoid dependencies on bitbake datastore
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.3 M2
Assignee: Aníbal Limón
QA Contact: Jose Perez C
URL:
Whiteboard:
Depends on:
Blocks: oeqa2
  Show dependency tree
 
Reported: 2016-09-06 22:52 UTC by Aníbal Limón
Modified: 2017-03-14 17:56 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aníbal Limón 2016-09-06 22:52:24 UTC
Restructure code for avoid direct dependencies on Bitbake data store, the QA
framework needs to be implemented in a way to made useful outside Bitbake environment.

There are two kind of Bitbake datastore variables used into the current oeqa codebase,

- Variables used for enable certain helper mechanism like logging, qemu, etc.,
this kind of variables needs to be passed to the classes QemuRunner, etc as arguments instead of call inside d.getVar.
- Variables used by the Test's itself to do/decide certain things, this variables needs to be passed into a directionary to OETestCase class instead of do d.getVar inside, also the OETestCase class needs to have the ability to validate if certain variables was provided.
Comment 2 Jose Perez C 2017-03-14 17:56:18 UTC
oeqa framework used to execute testimage on 2.3 M2rc3 and works correctly

https://wiki.yoctoproject.org/wiki/WW06_-_2017-02-03_-_Full_Test_Cycle_2.3_M2_rc3