summaryrefslogtreecommitdiffstats
path: root/test/Install
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-03-27 16:40:14 (GMT)
committerMats Wichmann <mats@linux.com>2021-03-28 13:32:13 (GMT)
commit833d487a79ba53e71640fd122b9470f50e8bef34 (patch)
tree49a20f58e15e482314e47855e23c337b9eebf78f /test/Install
parent693dd796c0a155e9c63412cc944bea3e336d726d (diff)
downloadSCons-833d487a79ba53e71640fd122b9470f50e8bef34.zip
SCons-833d487a79ba53e71640fd122b9470f50e8bef34.tar.gz
SCons-833d487a79ba53e71640fd122b9470f50e8bef34.tar.bz2
Stop stripping INSTALLSTR
The install module now calls the substitution routine with a raw argument. Fixes issue 2018 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Install')
-rw-r--r--test/Install/INSTALLSTR.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Install/INSTALLSTR.py b/test/Install/INSTALLSTR.py
index 145b81d..ace04f4 100644
--- a/test/Install/INSTALLSTR.py
+++ b/test/Install/INSTALLSTR.py
@@ -36,16 +36,18 @@ test = TestSCons.TestSCons()
test.subdir('install')
+# Check that spaces aren't stripped in INSTALLSTR by using
+# extra whitespace in the string (issue 2018)
test.write('SConstruct', """\
DefaultEnvironment(tools=[])
-env = Environment(tools=[], INSTALLSTR = 'INSTALL $SOURCE => $TARGET!')
+env = Environment(tools=[], INSTALLSTR='INSTALL $SOURCE => $TARGET!')
env.Install('install', 'file')
""")
test.write('file', "file\n")
test.run(stdout=test.wrap_stdout("""\
-INSTALL file => %s!
+INSTALL file => %s!
""") % os.path.join('install', 'file'))
test.must_match(['install', 'file'], "file\n")