mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 10:39:35 +08:00
[lit] Add a display function for lit.Test.TestResult.
llvm-svn: 174667
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user