summaryrefslogtreecommitdiffstats
path: root/test/Help.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-30 23:57:47 (GMT)
committerSteven Knight <knight@baldmt.com>2004-08-30 23:57:47 (GMT)
commitf09896916e7eb4fbd1d334d22e99e6b8d8a64696 (patch)
tree54428428d22e29966e91633ad19790f8ab6fb391 /test/Help.py
parent96cb20e235d66ab6ca7f50e2a1a9dc60d34d85db (diff)
downloadSCons-f09896916e7eb4fbd1d334d22e99e6b8d8a64696.zip
SCons-f09896916e7eb4fbd1d334d22e99e6b8d8a64696.tar.gz
SCons-f09896916e7eb4fbd1d334d22e99e6b8d8a64696.tar.bz2
Allow Help() to be called multiple times, appending to the text each time. (Chad Austin)
Diffstat (limited to 'test/Help.py')
-rw-r--r--test/Help.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Help.py b/test/Help.py
index ea356ba..d6e71ea 100644
--- a/test/Help.py
+++ b/test/Help.py
@@ -60,4 +60,26 @@ Use scons -H for help about command-line options.
test.run(arguments = '-h', stdout = expect)
+test.write('SConstruct', r"""
+Help('\nMulti')
+Help('line\n')
+Help('''\
+help
+text!
+''')
+""")
+
+expect = """\
+scons: Reading SConscript files ...
+scons: done reading SConscript files.
+
+Multiline
+help
+text!
+
+Use scons -H for help about command-line options.
+"""
+
+test.run(arguments = '-h', stdout = expect)
+
test.pass_test()