diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
commit | 2f8be7360679ad5e0260f4965ea5dd9506c7b033 (patch) | |
tree | 1379c046e82985011c5ab2d7604adf055e3140b9 /test/CVS.py | |
parent | 81e5793a07783b29a13004f834b7579a0e1605bb (diff) | |
download | SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.zip SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.gz SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.bz2 |
Implement Tool refactoring. (Chad Austin + Steve Leblanc)
Diffstat (limited to 'test/CVS.py')
-rw-r--r-- | test/CVS.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CVS.py b/test/CVS.py index d8d9da5..1296c5e 100644 --- a/test/CVS.py +++ b/test/CVS.py @@ -95,6 +95,7 @@ test.run(chdir = 'import', # Test the most straightforward CVS checkouts, using the module name. test.write(['work1', 'SConstruct'], """ +import os def cat(env, source, target): target = str(target[0]) source = map(str, source) @@ -102,7 +103,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 = { 'PATH' : os.environ['PATH'] }, + BUILDERS={'Cat':Builder(action=cat)}) env.Prepend(CVSFLAGS='-Q ') env.Cat('aaa.out', 'foo/aaa.in') env.Cat('bbb.out', 'foo/bbb.in') @@ -163,6 +165,7 @@ test.fail_test(not is_writable(test.workpath('work1', 'foo', 'sub', 'fff.in'))) # Test CVS checkouts when the module name is specified. test.write(['work2', 'SConstruct'], """ +import os def cat(env, source, target): target = str(target[0]) source = map(str, source) @@ -170,7 +173,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 = { 'PATH' : os.environ['PATH'] }, + BUILDERS={'Cat':Builder(action=cat)}) env.Prepend(CVSFLAGS='-q ') env.Cat('aaa.out', 'aaa.in') env.Cat('bbb.out', 'bbb.in') |