[lit] Add a display function for lit.Test.TestResult.

llvm-svn: 174667
This commit is contained in:
Daniel Dunbar 2013-02-07 21:34:34 +00:00
parent a061281556
commit d2cc63f10b
1 changed files with 4 additions and 0 deletions

View File

@ -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)