diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-12-18 21:13:09 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-12-18 21:13:09 +0100 |
commit | aa6809bd9431b5cc3952d6a6e2abde76b2bf003c (patch) | |
tree | 0da37ff519b9a3b6effbd1583b61abbf6f132c2a /scripts/TestUtil.py | |
parent | http://bugzilla/bugzilla/show_bug.cgi?id=4509 - parallel build issues. (diff) | |
download | ice-aa6809bd9431b5cc3952d6a6e2abde76b2bf003c.tar.bz2 ice-aa6809bd9431b5cc3952d6a6e2abde76b2bf003c.tar.xz ice-aa6809bd9431b5cc3952d6a6e2abde76b2bf003c.zip |
Fixed bug 4511 - properties override doesn't handle quotes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index ea4c3c23e88..1352121dcec 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -753,9 +753,9 @@ def argsToDict(argumentString, results): else: results[current] = None return results - -def getCommandLine(exe, config): +def getCommandLineProperties(exe, config): + # # Command lines are built up from the items in the components # sequence, which is initialized with command line options common to @@ -813,6 +813,15 @@ def getCommandLine(exe, config): components.append("%s=%s" % (k, v)) else: components.append("%s" % k) + + output = StringIO.StringIO() + for c in components: + print >>output, c, + properties = output.getvalue() + output.close() + return properties + +def getCommandLine(exe, config): output = StringIO.StringIO() if config.mono and config.lang == "cs": @@ -841,8 +850,7 @@ def getCommandLine(exe, config): else: print >>output, exe, - for c in components: - print >>output, c, + print >>output, getCommandLineProperties(exe, config), commandline = output.getvalue() output.close() |