diff options
| author | Steven Knight <knight@baldmt.com> | 2001-09-28 20:27:29 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2001-09-28 20:27:29 (GMT) |
| commit | 1740dba381b84692daa6b8e01eb4a52bf61330de (patch) | |
| tree | 51b14217886c985476220eaec6ca3c45601a2167 /src/engine/SCons/EnvironmentTests.py | |
| parent | d16a7ced0b53750e4252671c83bc7de871c69a46 (diff) | |
| download | SCons-1740dba381b84692daa6b8e01eb4a52bf61330de.zip SCons-1740dba381b84692daa6b8e01eb4a52bf61330de.tar.gz SCons-1740dba381b84692daa6b8e01eb4a52bf61330de.tar.bz2 | |
Add support for the ENV construction variable.
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
| -rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 0488173..c503fe2 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -16,7 +16,7 @@ class Builder: def __init__(self, name = None): self.name = name - def execute(self, target = None, source = None): + def execute(self, target = None, **kw): built_it[target] = 1 @@ -94,6 +94,16 @@ class EnvironmentTestCase(unittest.TestCase): assert xxx == 'x' assert zzz == 'z' assert env.Dictionary().has_key('BUILDERS') + assert env.Dictionary().has_key('ENV') + + def test_ENV(self): + """Test setting the external ENV in Environments + """ + env = Environment() + assert env.Dictionary().has_key('ENV') + + env = Environment(ENV = { 'PATH' : '/foo:/bar' }) + assert env.Dictionary('ENV')['PATH'] == '/foo:/bar' def test_Environment(self): """Test construction Environments creation |
