diff options
author | Steven Knight <knight@baldmt.com> | 2002-02-09 23:42:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-02-09 23:42:29 (GMT) |
commit | 09a60a303bd391e720848134ce3124b273d5162c (patch) | |
tree | 77f548ac4555f70a9a5be0b13f4afb7a85aebcd1 /etc | |
parent | aeefea2d7f66b819bbaf6dff8a8afef63b05722e (diff) | |
download | SCons-09a60a303bd391e720848134ce3124b273d5162c.zip SCons-09a60a303bd391e720848134ce3124b273d5162c.tar.gz SCons-09a60a303bd391e720848134ce3124b273d5162c.tar.bz2 |
Fix variable interpolation with spaces, and problems with the WIN32 environment (Charles Crain).
Diffstat (limited to 'etc')
-rw-r--r-- | etc/TestCmd.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/TestCmd.py b/etc/TestCmd.py index 8df039e..912be48 100644 --- a/etc/TestCmd.py +++ b/etc/TestCmd.py @@ -402,7 +402,7 @@ class TestCmd: if self.verbose: sys.stderr.write(cmd + "\n") try: - p = popen2.Popen3(cmd, 1) + p = popen2.Popen3(cmd, 1) except AttributeError: (tochild, fromchild, childerr) = os.popen3(cmd) if stdin: @@ -415,7 +415,9 @@ class TestCmd: self._stdout.append(fromchild.read()) self._stderr.append(childerr.read()) fromchild.close() - self._status = childerr.close() + self.status = childerr.close() + if not self.status: + self.status = 0 except: raise else: |