out,err,exitCode = res
if isXFail:
ok = exitCode != 0
- status = (Test.XPASS, Test.XFAIL)[ok]
+ status = Test.XFAIL if ok else Test.XPASS
else:
ok = exitCode == 0
- status = (Test.FAIL, Test.PASS)[ok]
+ status = Test.PASS if ok else Test.FAIL
if ok:
return (status,'')
out,err,exitCode = res
if isXFail:
ok = exitCode != 0
- status = (Test.XPASS, Test.XFAIL)[ok]
+ status = Test.XFAIL if ok else Test.XPASS
else:
ok = exitCode == 0
- status = (Test.FAIL, Test.PASS)[ok]
+ status = Test.PASS if ok else Test.FAIL
if ok:
return (status,'')