forked from OSchip/llvm-project
[lit] Add a display function for lit.Test.TestResult.
llvm-svn: 174667
This commit is contained in:
parent
a061281556
commit
d2cc63f10b
|
@ -7,6 +7,10 @@ class TestResult:
|
|||
self.name = name
|
||||
self.isFailure = isFailure
|
||||
|
||||
def __repr__(self):
|
||||
return '%s%r' % (self.__class__.__name__,
|
||||
(self.name, self.isFailure))
|
||||
|
||||
PASS = TestResult('PASS', False)
|
||||
XFAIL = TestResult('XFAIL', False)
|
||||
FAIL = TestResult('FAIL', True)
|
||||
|
|
Loading…
Reference in New Issue