Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: googletest/run_test_cases.py

Issue 25478010: Add ThreadPool.abort() to stop processing early. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/tools/swarm_client@master
Patch Set: Add TODO Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | googletest/trace_test_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: googletest/run_test_cases.py
diff --git a/googletest/run_test_cases.py b/googletest/run_test_cases.py
index ded1cddf36f593a809978e282316b0dfcdab4c72..adddef4d83b11506b0686d86de2a4da0372e60e3 100755
--- a/googletest/run_test_cases.py
+++ b/googletest/run_test_cases.py
@@ -864,7 +864,7 @@ class GoogleTestRunner(object):
# detect that a test has been successfully retried).
if i['output']:
line += '\n' + i['output']
- self.progress.update_item(line, index=True, size=need_to_retry)
+ self.progress.update_item(line, index=1, size=int(need_to_retry))
if need_to_retry:
priority = self._retry(priority, i['test_case'], try_count)
@@ -889,7 +889,7 @@ class GoogleTestRunner(object):
self.progress.update_item(output, raw=True)
for i in results:
priority = self._retry(priority, i['test_case'], try_count)
- self.progress.update_item('', size=True)
+ self.progress.update_item('', size=1)
# Only yield once the process completed when there is only one test case as
# a safety precaution.
« no previous file with comments | « no previous file | googletest/trace_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698