diff options
author | Steven Knight <knight@baldmt.com> | 2004-09-27 21:24:20 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-09-27 21:24:20 (GMT) |
commit | acaa064e738ce92d55ce9858f9cbada1d4ec9aaa (patch) | |
tree | 10174b4f6c649078aff04722fe7555a9935df39b /test/actions.py | |
parent | 7dc14efaf59b5051031437ec64bfd63650de2ab2 (diff) | |
download | SCons-acaa064e738ce92d55ce9858f9cbada1d4ec9aaa.zip SCons-acaa064e738ce92d55ce9858f9cbada1d4ec9aaa.tar.gz SCons-acaa064e738ce92d55ce9858f9cbada1d4ec9aaa.tar.bz2 |
Fix env.subst() stack trace on var containing ListAction.
Diffstat (limited to 'test/actions.py')
-rw-r--r-- | test/actions.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/actions.py b/test/actions.py index 42b391c..8a64a24 100644 --- a/test/actions.py +++ b/test/actions.py @@ -110,4 +110,24 @@ test.fail_test(test.read('foo.out') != "4\nfoo.in\n") test.up_to_date(arguments = '.') +# Make sure we can expand actions in substitutions. +test.write('SConstruct', """\ +def func(env, target, source): + pass +env = Environment(S = Action('foo'), + F = Action(func), + L = Action(['arg1', 'arg2'])) +print env.subst('$S') +print env.subst('$F') +print env.subst('$L') +""") + +test.run(arguments = '-Q .', stdout = """\ +foo +func(env, target, source) +arg1 +arg2 +scons: `.' is up to date. +""") + test.pass_test() |