From 2540d311e7cd9a18ffbd46a15412af6173db304f Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 13 Jun 2016 23:29:33 -0500 Subject: [PATCH] Don't accidentally remove python source tests. --- src/tools/python.jam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/python.jam b/src/tools/python.jam index 3ecd89764..6404d8ad3 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -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