diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
commit | a925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch) | |
tree | 292853eb221ebe82c9e9b47c03c74b78a155add0 /test/redirection.py | |
parent | dbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff) | |
download | SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2 |
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/redirection.py')
-rw-r--r-- | test/redirection.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/redirection.py b/test/redirection.py index da3732e..cc356c6 100644 --- a/test/redirection.py +++ b/test/redirection.py @@ -27,6 +27,8 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import TestSCons +python = TestSCons.python + test = TestSCons.TestSCons() test.write('cat.py', r""" @@ -42,12 +44,12 @@ sys.exit(0) test.write('SConstruct', r""" env = Environment() env.Command(target='foo1', source='bar1', - action='python cat.py $SOURCES > $TARGET') + action= '%s cat.py $SOURCES > $TARGET') env.Command(target='foo2', source='bar2', - action='python cat.py < $SOURCES > $TARGET') + action= '%s cat.py < $SOURCES > $TARGET') env.Command(target='foo3', source='bar3', - action='python cat.py $SOURCES | python cat.py > $TARGET') -""") + action='%s cat.py $SOURCES | %s cat.py > $TARGET') +""" % (python, python, python, python)) test.write('bar1', 'bar1\r\n') test.write('bar2', 'bar2\r\n') |