summaryrefslogtreecommitdiffstats
path: root/test/RCS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
commita925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch)
tree292853eb221ebe82c9e9b47c03c74b78a155add0 /test/RCS.py
parentdbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff)
downloadSCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/RCS.py')
-rw-r--r--test/RCS.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/RCS.py b/test/RCS.py
index 0dfc4bc..68bb546 100644
--- a/test/RCS.py
+++ b/test/RCS.py
@@ -83,6 +83,8 @@ test.no_result(os.path.exists(test.workpath('work1', 'sub', 'eee.in')))
test.no_result(os.path.exists(test.workpath('work1', 'sub', 'fff.in')))
test.write(['work1', 'SConstruct'], """
+import os
+ENV = {'PATH' : os.environ['PATH']}
def cat(env, source, target):
target = str(target[0])
source = map(str, source)
@@ -90,7 +92,8 @@ def cat(env, source, target):
for src in source:
f.write(open(src, "rb").read())
f.close()
-env = Environment(BUILDERS={'Cat':Builder(action=cat)},
+env = Environment(ENV=ENV,
+ BUILDERS={'Cat':Builder(action=cat)},
RCS_COFLAGS='-q')
env.Cat('aaa.out', 'aaa.in')
env.Cat('bbb.out', 'bbb.in')
@@ -169,6 +172,8 @@ test.no_result(os.path.exists(test.workpath('work2', 'sub', 'bbb.in')))
test.no_result(os.path.exists(test.workpath('work2', 'sub', 'ccc.in')))
test.write(['work2', 'SConstruct'], """
+import os
+ENV = { 'PATH' : os.environ['PATH'] }
def cat(env, source, target):
target = str(target[0])
source = map(str, source)
@@ -177,7 +182,7 @@ def cat(env, source, target):
f.write(open(src, "rb").read())
f.close()
_default_env['RCS_COFLAGS'] = '-l'
-env = Environment(BUILDERS={'Cat':Builder(action=cat)})
+env = Environment(ENV=ENV, BUILDERS={'Cat':Builder(action=cat)})
env.Cat('aaa.out', 'aaa.in')
env.Cat('bbb.out', 'bbb.in')
env.Cat('ccc.out', 'ccc.in')