mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Use the regular conditional operator syntax instead of a clever hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -522,10 +522,10 @@ def executeTclTest(test, litConfig):
|
|||||||
out,err,exitCode = res
|
out,err,exitCode = res
|
||||||
if isXFail:
|
if isXFail:
|
||||||
ok = exitCode != 0
|
ok = exitCode != 0
|
||||||
status = (Test.XPASS, Test.XFAIL)[ok]
|
status = Test.XFAIL if ok else Test.XPASS
|
||||||
else:
|
else:
|
||||||
ok = exitCode == 0
|
ok = exitCode == 0
|
||||||
status = (Test.FAIL, Test.PASS)[ok]
|
status = Test.PASS if ok else Test.FAIL
|
||||||
|
|
||||||
if ok:
|
if ok:
|
||||||
return (status,'')
|
return (status,'')
|
||||||
@ -558,10 +558,10 @@ def executeShTest(test, litConfig, useExternalSh):
|
|||||||
out,err,exitCode = res
|
out,err,exitCode = res
|
||||||
if isXFail:
|
if isXFail:
|
||||||
ok = exitCode != 0
|
ok = exitCode != 0
|
||||||
status = (Test.XPASS, Test.XFAIL)[ok]
|
status = Test.XFAIL if ok else Test.XPASS
|
||||||
else:
|
else:
|
||||||
ok = exitCode == 0
|
ok = exitCode == 0
|
||||||
status = (Test.FAIL, Test.PASS)[ok]
|
status = Test.PASS if ok else Test.FAIL
|
||||||
|
|
||||||
if ok:
|
if ok:
|
||||||
return (status,'')
|
return (status,'')
|
||||||
|
Reference in New Issue
Block a user