aboutsummaryrefslogtreecommitdiff
path: root/tools/binman
diff options
context:
space:
mode:
authorSimon Glass2017-11-12 21:52:19 -0700
committerSimon Glass2017-11-22 18:05:38 -0700
commit5a3f2226043cd46d446ab6eba39e47d131b47175 (patch)
tree04ea92409d7af33c5bb04385446a7bd44d299966 /tools/binman
parentaab660fe18ac24ee859a203f517f939685af5e10 (diff)
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rwxr-xr-xtools/binman/binman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index d264bcdfa8c..963d43a3761 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -58,7 +58,7 @@ def RunTests():
def RunTestCoverage():
"""Run the tests and check that we get 100% coverage"""
# 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" '
'tools/binman/binman.py -t' % options.build_dir)
os.system(cmd)