]> git.sur5r.net Git - u-boot/commitdiff
binman: Append to PYTHONPATH when running test coverage
authorSimon Glass <sjg@chromium.org>
Mon, 13 Nov 2017 04:52:19 +0000 (21:52 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Nov 2017 01:05:38 +0000 (18:05 -0700)
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>
tools/binman/binman.py

index d264bcdfa8ce819bc87b5b0f8a08e8b9102bc38a..963d43a3761a6953a5116d7e6a1afd4919199550 100755 (executable)
@@ -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)