Skip to content
Snippets Groups Projects
Commit 5a3f2226 authored by Simon Glass's avatar Simon Glass
Browse files

binman: Append to PYTHONPATH when running test coverage


Rather that overwrite this, append to it, in case the caller has already
set up the path correctly.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent aab660fe
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ def RunTests(): ...@@ -58,7 +58,7 @@ def RunTests():
def RunTestCoverage(): def RunTestCoverage():
"""Run the tests and check that we get 100% coverage""" """Run the tests and check that we get 100% coverage"""
# This uses the build output from sandbox_spl to get _libfdt.so # This uses the build output from sandbox_spl to get _libfdt.so
cmd = ('PYTHONPATH=%s/sandbox_spl/tools coverage run ' cmd = ('PYTHONPATH=$PYTHONPATH:%s/sandbox_spl/tools coverage run '
'--include "tools/binman/*.py" --omit "*test*,*binman.py" ' '--include "tools/binman/*.py" --omit "*test*,*binman.py" '
'tools/binman/binman.py -t' % options.build_dir) 'tools/binman/binman.py -t' % options.build_dir)
os.system(cmd) os.system(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment