summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCommon.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-10-31 06:08:28 (GMT)
committerSteven Knight <knight@baldmt.com>2008-10-31 06:08:28 (GMT)
commit7af32467718be561f1ccfc4ba643625cdf87d54f (patch)
tree59367af192a53a2627d742d3d9905598152e00ba /QMTest/TestCommon.py
parent826b8777978674a0459ed736d37f8a1b33a1ca0b (diff)
downloadSCons-7af32467718be561f1ccfc4ba643625cdf87d54f.zip
SCons-7af32467718be561f1ccfc4ba643625cdf87d54f.tar.gz
SCons-7af32467718be561f1ccfc4ba643625cdf87d54f.tar.bz2
Move responsibility for extracting the exit status from executed tests
from the TestCommon.py module to the wrapper classes in TestCmd.py that we use as fallbacks if the subprocess module doesn't exist.
Diffstat (limited to 'QMTest/TestCommon.py')
-rw-r--r--QMTest/TestCommon.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/QMTest/TestCommon.py b/QMTest/TestCommon.py
index 167f84d..263f22a 100644
--- a/QMTest/TestCommon.py
+++ b/QMTest/TestCommon.py
@@ -84,8 +84,8 @@ The TestCommon module also provides the following variables
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
__author__ = "Steven Knight <knight at baldmt dot com>"
-__revision__ = "TestCommon.py 0.31.D001 2008/01/01 09:05:59 knight"
-__version__ = "0.31"
+__revision__ = "TestCommon.py 0.32.D001 2008/10/30 23:00:04 knight"
+__version__ = "0.32"
import copy
import os
@@ -220,13 +220,7 @@ if os.name == 'posix':
return None
return _status(self) != status
def _status(self):
- return self.status # p.wait() has already retrieved the OS status from the status val; don't do it again here!
-# if os.WIFEXITED(self.status):
-# return os.WEXITSTATUS(self.status)
-# elif os.WIFSIGNALED(self.status):
-# return os.WTERMSIG(self.status)
-# else:
-# return None
+ return self.status
elif os.name == 'nt':
def _failed(self, status = 0):
return not (self.status is None or status is None) and \