summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/Options/help.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-12-29 08:09:17 (GMT)
committerSteven Knight <knight@baldmt.com>2008-12-29 08:09:17 (GMT)
commit7b36529d703b12ee4f16c3aa5bd34a002235371d (patch)
tree16a5362d3bbb9e115d268d07e1673667ea500657 /test/Deprecated/Options/help.py
parentd0259ae0e1a37f431b21c8a7116b4206c127f8b6 (diff)
downloadSCons-7b36529d703b12ee4f16c3aa5bd34a002235371d.zip
SCons-7b36529d703b12ee4f16c3aa5bd34a002235371d.tar.gz
SCons-7b36529d703b12ee4f16c3aa5bd34a002235371d.tar.bz2
Fix use of path names in regular expression matches by running them
through re.escape() (specifically to avoid problems with embedded "+++" in temporary directory names on Mac OS X).
Diffstat (limited to 'test/Deprecated/Options/help.py')
-rw-r--r--test/Deprecated/Options/help.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/Deprecated/Options/help.py b/test/Deprecated/Options/help.py
index 049cb1e..2ad5253 100644
--- a/test/Deprecated/Options/help.py
+++ b/test/Deprecated/Options/help.py
@@ -29,6 +29,7 @@ Test the Options help messages.
"""
import os.path
+import re
import string
try:
@@ -51,6 +52,10 @@ qtpath = os.path.join(workpath, 'qt')
libpath = os.path.join(qtpath, 'lib')
libdirvar = os.path.join('$qtdir', 'lib')
+qtpath_re = re.escape(qtpath)
+libpath_re = re.escape(libpath)
+libdirvar_re = re.escape(libdirvar)
+
test.subdir(qtpath)
test.subdir(libpath)
@@ -135,12 +140,12 @@ x11: use X11 installed here \\(yes = search some places\\)
actual: %(str_True)s
qtdir: where the root of Qt is installed \\( /path/to/qtdir \\)
- default: %(qtpath)s
- actual: %(qtpath)s
+ default: %(qtpath_re)s
+ actual: %(qtpath_re)s
qt_libraries: where the Qt library is installed \\( /path/to/qt_libraries \\)
- default: %(libdirvar)s
- actual: %(libpath)s
+ default: %(libdirvar_re)s
+ actual: %(libpath_re)s
Use scons -H for help about command-line options.
""" % locals()