diff options
author | Steven Knight <knight@baldmt.com> | 2004-03-16 00:56:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-03-16 00:56:26 (GMT) |
commit | 2e6a13dac906dd5848eca0448048c07ab0a5749c (patch) | |
tree | 5d86726ecf4cfa6fe5271af455da50fd26e7e542 /src/engine/SCons/EnvironmentTests.py | |
parent | ffb0263b87f3917dba0ecbfca4e26ab3185f2a0e (diff) | |
download | SCons-2e6a13dac906dd5848eca0448048c07ab0a5749c.zip SCons-2e6a13dac906dd5848eca0448048c07ab0a5749c.tar.gz SCons-2e6a13dac906dd5848eca0448048c07ab0a5749c.tar.bz2 |
Support passing arbitrary environment override keywords to Command().
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
-rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index ca0b458..3850ef6 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -1671,6 +1671,17 @@ class EnvironmentTestCase(unittest.TestCase): assert 'foo1.in' in map(lambda x: x.path, t.sources) assert 'foo2.in' in map(lambda x: x.path, t.sources) + x = [] + def test2(baz, x=x): + x.append(baz) + env = Environment(TEST2 = test2) + t = env.Command(target='baz.out', source='baz.in', + action='${TEST2(XYZ)}', + XYZ='magic word') + assert not t.builder is None + t.build() + assert x[0] == 'magic word', x + def test_Configure(self): """Test the Configure() method""" # Configure() will write to a local temporary file. |