summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Gross <grossag@vmware.com>2020-11-13 18:32:40 (GMT)
committerAdam Gross <grossag@vmware.com>2020-11-13 18:32:40 (GMT)
commit03a319cdd0cd092b9f78de136b3bd701c68190bf (patch)
treeb9afaced4baaf279a320c3e666f5d44b245110a9
parent784f36c2c1c132c476b09658c5b19f92bce86d87 (diff)
downloadSCons-03a319cdd0cd092b9f78de136b3bd701c68190bf.zip
SCons-03a319cdd0cd092b9f78de136b3bd701c68190bf.tar.gz
SCons-03a319cdd0cd092b9f78de136b3bd701c68190bf.tar.bz2
Change test to follow its own instructions
-rw-r--r--test/Scanner/Python/SConstruct6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/Scanner/Python/SConstruct b/test/Scanner/Python/SConstruct
index 63fc44b..0466d37 100644
--- a/test/Scanner/Python/SConstruct
+++ b/test/Scanner/Python/SConstruct
@@ -1,13 +1,11 @@
import sys
env = Environment(tools=['python'])
-c = []
for source, target in [
('to_be_copied', 'package1'),
('to_be_copied', 'package2'),
]:
- c += env.Command(target, source, Copy('$TARGET', '$SOURCE'))
+ env.Command(target, source, Copy('$TARGET', '$SOURCE'))
# Don't set a dependency on the copy actions on purpose. Scanner should find
# the dependencies automatically.
-s = env.Command('a.out', 'script.py', '$PYTHON $SOURCE $TARGET', PYTHON=sys.executable)
-env.Depends(s, c) \ No newline at end of file
+env.Command('a.out', 'script.py', '$PYTHON $SOURCE $TARGET', PYTHON=sys.executable) \ No newline at end of file