diff options
author | Jose <jose@zeroc.com> | 2015-06-10 13:36:14 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-06-10 13:36:14 +0200 |
commit | 868b41b4ba793332f32c4b6173941e0a008f485f (patch) | |
tree | 7bc8fc2e47d7079d1748bddd27043b6a089d4d6b /scripts/TestUtil.py | |
parent | Fixed Ice/stream test leak (ICE-6583) (diff) | |
download | ice-868b41b4ba793332f32c4b6173941e0a008f485f.tar.bz2 ice-868b41b4ba793332f32c4b6173941e0a008f485f.tar.xz ice-868b41b4ba793332f32c4b6173941e0a008f485f.zip |
Fix TestUtil.py status code handling
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 3eed4b61e5c..723ffe24b38 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -2316,10 +2316,8 @@ def runTests(start, expanded, num = 0, script = False): print("fi") else: status = os.system(sys.executable + " " + quoteArgument(os.path.join(dir, "run.py")) + " " + args) - if not isWin32(): - status = status >> 8 - if status: + status = status if isWin32() else (status >> 8) if(num > 0): sys.stdout.write("[" + str(num) + "] ") message = "test in " + os.path.abspath(dir) + " failed with exit status", status, |