if-else statements, to hopefully support older pythons (PR7850).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110638
91177308-0d34-0410-b5e6-
96231b3b80d8
out,err,exitCode = res
if isXFail:
ok = exitCode != 0 or err
- status = Test.XFAIL if ok else Test.XPASS
+ if ok:
+ status = Test.XFAIL
+ else:
+ status = Test.XPASS
else:
ok = exitCode == 0 and not err
- status = Test.PASS if ok else Test.FAIL
+ if ok:
+ status = Test.PASS
+ else:
+ status = Test.FAIL
if ok:
return (status,'')
out,err,exitCode = res
if isXFail:
ok = exitCode != 0
- status = Test.XFAIL if ok else Test.XPASS
+ if ok:
+ status = Test.XFAIL
+ else:
+ status = Test.XPASS
else:
ok = exitCode == 0
- status = Test.PASS if ok else Test.FAIL
+ if ok:
+ status = Test.PASS
+ else:
+ status = Test.FAIL
if ok:
return (status,'')