diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-02-07 21:34:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-02-07 21:34:34 +0000 |
commit | 83a4cb51ce6803782ccc9c6ecd86b63971b5c00b (patch) | |
tree | 7f8be0e7fc310863e4719a2dab2b3c0cd3cbba25 /utils | |
parent | 5dd41c95f3075fc5c01cfb6822a66ac584fcc8c7 (diff) | |
download | external_llvm-83a4cb51ce6803782ccc9c6ecd86b63971b5c00b.zip external_llvm-83a4cb51ce6803782ccc9c6ecd86b63971b5c00b.tar.gz external_llvm-83a4cb51ce6803782ccc9c6ecd86b63971b5c00b.tar.bz2 |
[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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lit/lit/Test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/lit/lit/Test.py b/utils/lit/lit/Test.py index db2e032..9471e3a 100644 --- a/utils/lit/lit/Test.py +++ b/utils/lit/lit/Test.py @@ -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) |