Bug 8930 - oe-selftest: coverage should work without instrumenting system sitecustomize.py file
Summary: oe-selftest: coverage should work without instrumenting system sitecustomize....
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M3
Assignee: Humberto Ibarra
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-14 23:05 UTC by Leonardo Sandoval Gonzalez
Modified: 2016-03-10 19:52 UTC (History)
4 users (show)

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


Attachments
oe-selftest.log (10.77 KB, text/x-log)
2016-03-10 19:52 UTC, Francisco Pedraza
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2016-01-14 23:05:53 UTC
Currently, if the users needs to run coverage, there is a pre-step before running it as explain in [1]. This is too intrusive for some users that do not have system privileges. Ideally, oe-selftest should instrument a LOCAL user site file before starting any tests. One possible way is to use [2], but there may be other ways to handle this.

[1] https://coverage.readthedocs.org/en/coverage-4.0.2/subprocess.html
[2] https://docs.python.org/2/library/site.html#site.USER_SITE
Comment 2 Leonardo Sandoval Gonzalez 2016-02-16 20:33:30 UTC
it should be in progress review instead of resolved
Comment 5 Francisco Pedraza 2016-03-10 18:40:27 UTC
Verified and Passed.
Comment 6 Francisco Pedraza 2016-03-10 19:52:14 UTC
Created attachment 3023 [details]
oe-selftest.log

(In reply to comment #5)
> Verified and Passed.
I ran 
oe-selftest --run-tests bblayers.BitbakeLayers.test_bitbakelayers_flatten --coverage and everything passed.
Poky commit: 3f7aa6fc5d018747e8d3bc8d6038215c36c9ef54
Attached you can find log.