forked from OSchip/llvm-project
Use the regular conditional operator syntax instead of a clever hack.
llvm-svn: 110168
This commit is contained in:
parent
fc419ef6a0
commit
c70c6b144a
|
|
@ -522,10 +522,10 @@ def executeTclTest(test, litConfig):
|
|||
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,'')
|
||||
|
|
@ -558,10 +558,10 @@ def executeShTest(test, litConfig, useExternalSh):
|
|||
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,'')
|
||||
|
|
|
|||
Loading…
Reference in New Issue