diff options
author | Steven Knight <knight@baldmt.com> | 2003-12-19 13:28:34 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-12-19 13:28:34 (GMT) |
commit | 4c89d3cf50ccc16d32a5cd2c32fe4878e079d4e5 (patch) | |
tree | 3a6fd59f303808e01e64fe04c480537ac0039799 /etc | |
parent | 3dbcd90feabb2bc928373fe8618eb4453fcaa76e (diff) | |
download | SCons-4c89d3cf50ccc16d32a5cd2c32fe4878e079d4e5.zip SCons-4c89d3cf50ccc16d32a5cd2c32fe4878e079d4e5.tar.gz SCons-4c89d3cf50ccc16d32a5cd2c32fe4878e079d4e5.tar.bz2 |
Work around Cygwin Python's broken idea that it's case-sensitive. (Chad Austin)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/TestSCons.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py index 1ce60e4..028a815 100644 --- a/etc/TestSCons.py +++ b/etc/TestSCons.py @@ -94,7 +94,7 @@ class TestNoResult(Exception): if os.name == 'posix': def _failed(self, status = 0): - if self.status is None: + if self.status is None or status is None: return None if os.WIFSIGNALED(self.status): return None @@ -106,7 +106,8 @@ if os.name == 'posix': return None elif os.name == 'nt': def _failed(self, status = 0): - return not self.status is None and self.status != status + return not (self.status is None or status is None) and \ + self.status != status def _status(self): return self.status @@ -168,7 +169,8 @@ class TestSCons(TestCmd.TestCmd): don't test error output. status The expected exit status from the - command. + command. A value of None means don't + test exit status. By default, this does not test standard output (stdout = None), and expects that error output is empty (stderr = ""). |