1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[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 6ea6486f83
commit 87a628ad87

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)