Skip to content

sanitycheck fails to generate coverage report if samples/application_development/external_lib is run #13014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aescolar opened this issue Feb 3, 2019 · 0 comments
Assignees
Labels
area: Test Framework Issues related not to a particular test, but to the framework instead bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@aescolar
Copy link
Member

aescolar commented Feb 3, 2019

Describe the bug
When samples/application_development/external_lib is part of the tests sanitycheck runs,
running sanitycheck with the -C option (so a coverage report is generated), will fail when
genhtml fails to find the mylib.c included file

To Reproduce
Steps to reproduce the behavior:

  1. sanitycheck -p native_posix -C -T samples/application_development/
  2. See error

Expected behavior
No error, and the html report being generated

Impact
A small anoyance for developers:
Cannot generate coverage reports directly with sanitycheck.

Environment (please complete the following information):

  • OS: Linux
  • Toolchain gcc 7.0
  • Commit SHA (todays master) 6904501

Additional context
Incoming bugfix

@aescolar aescolar added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: Test Framework Issues related not to a particular test, but to the framework instead labels Feb 3, 2019
@aescolar aescolar self-assigned this Feb 3, 2019
aescolar added a commit to aescolar/zephyr that referenced this issue Feb 3, 2019
When calling genhtml to generate a coverage report directly from
sanitycheck (-C option), call it with the "--ignore-errors source"
option, so it does not exit when it meets a missing file, but
instead it warns the user and continues.

Fixes zephyrproject-rtos#13014

Signed-off-by: Alberto Escolar Piedras <[email protected]>
nashif pushed a commit that referenced this issue Feb 3, 2019
When calling genhtml to generate a coverage report directly from
sanitycheck (-C option), call it with the "--ignore-errors source"
option, so it does not exit when it meets a missing file, but
instead it warns the user and continues.

Fixes #13014

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Test Framework Issues related not to a particular test, but to the framework instead bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

1 participant