diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-26 16:26:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-26 16:26:26 (GMT) |
commit | f5a80d8cf4143edd7434805a568cc0e7eeaf81c0 (patch) | |
tree | 3608231e6b538a5222c7d501cbd9ce8d8ef08c76 /QMTest/TestRuntest.py | |
parent | b21c0b3f84d0b064e9d2dd548e0b6d246a537afb (diff) | |
download | SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.zip SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.tar.gz SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.tar.bz2 |
Win32 portability in runtest.py tests after disabling QMTest by default.
Diffstat (limited to 'QMTest/TestRuntest.py')
-rw-r--r-- | QMTest/TestRuntest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/QMTest/TestRuntest.py b/QMTest/TestRuntest.py index 08cfb4f..679a6ab 100644 --- a/QMTest/TestRuntest.py +++ b/QMTest/TestRuntest.py @@ -18,6 +18,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import os.path +import re import string import shutil import sys @@ -27,12 +28,19 @@ from TestCommon import __all__ __all__.extend([ 'TestRuntest', 'python', + 'pythonstring', '_python_', ]) python = python_executable _python_ = '"' + python_executable + '"' +if re.search('\s', python): + pythonstring = _python_ +else: + pythonstring = python +pythonstring = string.replace(pythonstring, '\\', '\\\\') + failing_test_template = """\ import sys |