diff options
author | Mats Wichmann <mats@linux.com> | 2019-02-08 16:45:15 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-02-08 16:54:40 (GMT) |
commit | de01f7ea3cd258c893e1262800b96dd85ae89133 (patch) | |
tree | 2fccbc839f100a05c36c8c6660071d733b89c8cf /test | |
parent | 9f090132091e56c123262106f3563142787c2fcf (diff) | |
download | SCons-de01f7ea3cd258c893e1262800b96dd85ae89133.zip SCons-de01f7ea3cd258c893e1262800b96dd85ae89133.tar.gz SCons-de01f7ea3cd258c893e1262800b96dd85ae89133.tar.bz2 |
Add textfile tool to defaults
PR #3242 added the Textfile and Substfile builders to the default builder
list (for issue #3147), but didn't finish the job: the textfile tool
needs to be added to the default list of tools as well. This time
with a testcase that fails if the tool is not added. Minor doc tweak.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/textfile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/textfile.py b/test/textfile.py index 46eee34..1d5b3c7 100644 --- a/test/textfile.py +++ b/test/textfile.py @@ -115,6 +115,8 @@ test.write('foo2a.txt', foo2aText) test.write('bar2a.txt', foo2aText) check_times() +# now that textfile is part of default tool list, run one testcase +# without adding it explicitly as a tool to make sure. test.write('SConstruct', """ textlist = ['This line has no substitutions', 'This line has @subst@ substitutions', @@ -125,7 +127,7 @@ sub1 = { '@subst@' : 'most' } sub2 = { '%subst%' : 'many' } sub3 = { '@subst@' : 'most' , '%subst%' : 'many' } -env = Environment(tools = ['textfile']) +env = Environment() t = env.Textfile('text', textlist) # no substitutions |