Skip to content

Commit

Permalink
[lit] Add a display function for lit.Test.TestResult.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174667 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Feb 7, 2013
1 parent 5dd41c9 commit 83a4cb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/lit/lit/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ def __init__(self, name, isFailure):
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)
Expand Down

0 comments on commit 83a4cb5

Please sign in to comment.