From 868b41b4ba793332f32c4b6173941e0a008f485f Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 10 Jun 2015 13:36:14 +0200 Subject: Fix TestUtil.py status code handling --- scripts/TestUtil.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/TestUtil.py') 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, -- cgit v1.2.3