mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
[lit] Add a display function for lit.Test.TestResult.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5dd41c95f3
commit
83a4cb51ce
@ -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
Block a user