summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-06-06 00:48:58 (GMT)
committerSteven Knight <knight@baldmt.com>2010-06-06 00:48:58 (GMT)
commit5bf482c69d08f5ef89e9cb120ae89872b033b287 (patch)
treeac058390368dd11f3cdf8fb8b716eb2803b8dd6b /runtest.py
parent2fc4d8d28cfba093f9d14c4215cee301aa6602c7 (diff)
downloadSCons-5bf482c69d08f5ef89e9cb120ae89872b033b287.zip
SCons-5bf482c69d08f5ef89e9cb120ae89872b033b287.tar.gz
SCons-5bf482c69d08f5ef89e9cb120ae89872b033b287.tar.bz2
Windows portability fixes in various tests. Fix runtest.py detection
of non-zero exit status on systems that don't have os.WEXITSTATUS().
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index 9246a4b..f838f4f 100644
--- a/runtest.py
+++ b/runtest.py
@@ -737,7 +737,13 @@ if qmtest:
sys.stdout.flush()
status = 0
if execute_tests:
- status = os.WEXITSTATUS(os.system(cmd))
+ status = os.system(cmd)
+ try:
+ wexitstatus = os.WEXITSTATUS
+ except AttributeError:
+ pass
+ else:
+ status = wexitstatus(status)
sys.exit(status)
#try: