2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Don't accidentally remove python source tests.

This commit is contained in:
Rene Rivera
2016-06-13 23:29:33 -05:00
committed by GitHub
parent 8251fd7550
commit 2540d311e7

View File

@@ -1222,8 +1222,10 @@ rule capture-output ( target : sources * : properties * )
PYTHONPATH += [ feature.get-values pythonpath : $(properties) ] ;
# After test is run, we remove the Python module, but not the Python script.
local targets-to-remove = $(sources[2-]) ;
targets-to-remove ?= none ;
testing.capture-output $(target) : $(sources[1]) : $(properties) :
$(sources[2-]) ;
$(targets-to-remove) ;
# PYTHONPATH is different; it will be interpreted by whichever Python is
# invoked and so must follow path rules for the target os. The only OSes