summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/ActionTests.py
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2017-02-11 14:26:39 (GMT)
committerThomas Tanner <trtanner@btinternet.com>2017-02-11 14:26:39 (GMT)
commit98c4c1c7b820bbb42384584bc0d95c7849f71503 (patch)
tree291c866dca8d283b1607f1eae9d45dd1d35169b4 /src/engine/SCons/ActionTests.py
parentcdac4f74fcad946a05754842a00c8ce1648751eb (diff)
downloadSCons-98c4c1c7b820bbb42384584bc0d95c7849f71503.zip
SCons-98c4c1c7b820bbb42384584bc0d95c7849f71503.tar.gz
SCons-98c4c1c7b820bbb42384584bc0d95c7849f71503.tar.bz2
Allow nested $( $) sections
Diffstat (limited to 'src/engine/SCons/ActionTests.py')
-rw-r--r--src/engine/SCons/ActionTests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/ActionTests.py b/src/engine/SCons/ActionTests.py
index b790ccc..f0c48ea 100644
--- a/src/engine/SCons/ActionTests.py
+++ b/src/engine/SCons/ActionTests.py
@@ -1241,8 +1241,8 @@ class CommandActionTestCase(unittest.TestCase):
(env["foo"], env["bar"])
# The number 1 is there to make sure all args get converted to strings.
- a = SCons.Action.CommandAction(["|", "$(", "$foo", "|", "$bar",
- "$)", "|", "$baz", 1])
+ a = SCons.Action.CommandAction(["|", "$(", "$foo", "|", "$(", "$bar",
+ "$)", "stuff", "$)", "|", "$baz", 1])
c = a.get_contents(target=[], source=[],
env=Environment(foo = 'FFF', bar = 'BBB',
baz = CmdGen))
@@ -1257,7 +1257,7 @@ class CommandActionTestCase(unittest.TestCase):
c = a.get_contents(target=DummyNode('ttt'), source = DummyNode('sss'),
env=SpecialEnvironment(foo = 'GGG', bar = 'CCC',
baz = 'ZZZ'))
- assert c == b'subst_target_source: | $( $foo | $bar $) | $baz 1', c
+ assert c == b'subst_target_source: | $( $foo | $( $bar $) stuff $) | $baz 1', c
# We've discussed using the real target and source names in a
# CommandAction's signature contents. This would have have the