diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-01-14 11:38:14 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-01-14 11:38:14 -0800 |
commit | d78fc8b7d2cff05a49d92645f66f45d4b5847042 (patch) | |
tree | 3ad6fedafef72f0b433995fb5e41be2cc9505e1a /test/Builder | |
parent | b7444be26f7b577ae399c07b600e8350298514aa (diff) | |
download | scons-d78fc8b7d2cff05a49d92645f66f45d4b5847042.tar.gz |
fix test which was expecting a given location for python binary running the test
Diffstat (limited to 'test/Builder')
-rw-r--r-- | test/Builder/multi/different-environments.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Builder/multi/different-environments.py b/test/Builder/multi/different-environments.py index 68749cf8..783b7f9d 100644 --- a/test/Builder/multi/different-environments.py +++ b/test/Builder/multi/different-environments.py @@ -30,6 +30,7 @@ but the overrides don't appear to affect the build operation. """ import TestSCons +import sys test = TestSCons.TestSCons(match=TestSCons.match_re) @@ -57,9 +58,9 @@ test.write('file03b.in', 'file03b.in\n') expect = TestSCons.re_escape(""" scons: *** Two environments with different actions were specified for the same target: file03.out -(action 1: /usr/bin/python build.py 1 file03.out file03b.in) -(action 2: /usr/bin/python build.py 2 file03.out file03b.in) -""") + TestSCons.file_expr +(action 1: %s build.py 1 file03.out file03b.in) +(action 2: %s build.py 2 file03.out file03b.in) +""" % (sys.executable, sys.executable )) + TestSCons.file_expr test.run(arguments='file03.out', status=2, stderr=expect) |