Bug 9389

Summary: oeqa: split configuration from the code
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Jose Lamego <jose.a.lamego>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: Medium CC: benjamin.esquivel, leonardo.sandoval.gonzalez, meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.2 M3   
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: 9390    
Bug Blocks:    

Description Robert Yang 2016-04-05 03:18:44 UTC
For example, in meta/lib/oeqa/selftest/archiver.py:

        features = 'INHERIT += "archiver"\n'
        features += 'ARCHIVER_MODE[src] = "original"\n'
        features += 'COPYLEFT_PN_INCLUDE = "%s"\n' % include_recipe
        features += 'COPYLEFT_PN_EXCLUDE = "%s"\n' % exclude_recipe


We can put these in a conf file, the benefit is:

* The user can easily know what is happened
* We can easily add or modify the test case
Comment 1 Leonardo Sandoval Gonzalez 2016-04-28 15:58:04 UTC
Robert, where do you suggest to place the conf file?
Comment 2 Robert Yang 2016-04-29 06:10:13 UTC
(In reply to comment #1)
> Robert, where do you suggest to place the conf file?

You can use a proper location you like, for example, in oeqa:
meta/lib/oeqa/selftest/config_files/signing.conf
Comment 3 Jose Lamego 2016-06-27 17:31:49 UTC
Updating target milestone. Patches send pending.
Comment 4 Jose Lamego 2016-08-16 22:46:02 UTC
A solution was developed for the requested feature: [1], however, the change proved to be too intrusive and the resulting code hard-to-read enough to make it nonviable to implement.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2016-August/124867.html