diff options
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, |