diff options
author | Steven Knight <knight@baldmt.com> | 2004-01-27 06:35:04 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-01-27 06:35:04 (GMT) |
commit | d0b4699180b7177561f452b646b85ec39f09d0e2 (patch) | |
tree | faf09e444cbecbeafdc012c1e686a394c6eb156c /runtest.py | |
parent | a478cc2fd257e58173fed2f3d00a2b0948a64fcf (diff) | |
download | SCons-d0b4699180b7177561f452b646b85ec39f09d0e2.zip SCons-d0b4699180b7177561f452b646b85ec39f09d0e2.tar.gz SCons-d0b4699180b7177561f452b646b85ec39f09d0e2.tar.bz2 |
Accomodate white space in path names when running tests.
Diffstat (limited to 'runtest.py')
-rw-r--r-- | runtest.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -354,8 +354,15 @@ class Unbuffered: sys.stdout = Unbuffered(sys.stdout) +_ws = re.compile('\s') + +def escape(s): + if _ws.search(s): + s = '"' + s + '"' + return s + for t in tests: - cmd = string.join([python, debug, t.abspath], " ") + cmd = string.join(map(escape, [python, debug, t.abspath]), " ") if printcmd: sys.stdout.write(cmd + "\n") s = os.system(cmd) |