[llvm] r282501 - [lit] Fix refacto introduced by rL282479.
Daniel Dunbar via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 09:17:42 PDT 2016
Author: ddunbar
Date: Tue Sep 27 11:17:42 2016
New Revision: 282501
URL: http://llvm.org/viewvc/llvm-project?rev=282501&view=rev
Log:
[lit] Fix refacto introduced by rL282479.
Modified:
llvm/trunk/utils/lit/lit/run.py
Modified: llvm/trunk/utils/lit/lit/run.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/run.py?rev=282501&r1=282500&r2=282501&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/run.py (original)
+++ llvm/trunk/utils/lit/lit/run.py Tue Sep 27 11:17:42 2016
@@ -151,16 +151,18 @@ def run_one_tester(run, provider, displa
tester.run()
###
+
class _Display(object):
def __init__(self, display, provider, maxFailures):
self.display = display
+ self.provider = provider
self.maxFailures = maxFailures or object()
self.failedCount = 0
def update(self, test):
self.display.update(test)
self.failedCount += (test.result.code == lit.Test.FAIL)
if self.failedCount == self.maxFailures:
- provider.cancel()
+ self.provider.cancel()
def handleFailures(provider, consumer, maxFailures):
consumer.display = _Display(consumer.display, provider, maxFailures)
More information about the llvm-commits
mailing list