diff options
author | Jim Randall <dreadfest@gmail.com> | 2008-08-22 13:27:56 +0000 |
---|---|---|
committer | Jim Randall <dreadfest@gmail.com> | 2008-08-22 13:27:56 +0000 |
commit | 85bb4b161a18e7013094194461c468b0bb6c91a0 (patch) | |
tree | 3162a85cc37474c72051732a9afe957a66e275d9 /test/WhereIs.py | |
parent | a134c0d906f260bae0d0fa71f4dad0c7243ea718 (diff) | |
download | scons-85bb4b161a18e7013094194461c468b0bb6c91a0.tar.gz |
call subst on the line passed to Environment.WhereIs
Diffstat (limited to 'test/WhereIs.py')
-rw-r--r-- | test/WhereIs.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/WhereIs.py b/test/WhereIs.py index dccfefbe..a2c5b012 100644 --- a/test/WhereIs.py +++ b/test/WhereIs.py @@ -74,13 +74,16 @@ print env.WhereIs('xxx.exe', %s) print WhereIs('xxx.exe', %s) print WhereIs('xxx.exe', %s) print WhereIs('xxx.exe', %s, reject=%s) +env.Replace( XXXNAME='xxx.exe' ) +print env.WhereIs( '$XXXNAME', %s ) """ % (subdir_SConscript, repr(string.join(pathdirs_1234, os.pathsep)), repr(string.join(pathdirs_1243, os.pathsep)), repr(pathdirs_1234), repr(pathdirs_1243), repr(pathdirs_1243), - repr(sub4_xxx_exe) + repr(sub4_xxx_exe), + repr(string.join(pathdirs_1243, os.pathsep)), )) test.write(subdir_SConscript, """ @@ -109,6 +112,7 @@ expect = [ test.workpath(sub3_xxx_exe), test.workpath(sub3_xxx_exe), test.workpath(sub4_xxx_exe), test.workpath(sub3_xxx_exe), + test.workpath(sub4_xxx_exe) ] test.run(arguments = ".", @@ -128,10 +132,12 @@ expect = [ test.workpath(sub4_xxx_exe), test.workpath(sub3_xxx_exe), test.workpath(sub4_xxx_exe), test.workpath(sub3_xxx_exe), + test.workpath(sub4_xxx_exe) ] test.run(arguments = ".", stdout = test.wrap_stdout(read_str = string.join(expect, "\n") + "\n", build_str = "scons: `.' is up to date.\n")) + test.pass_test() |