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

Unified Diff: googletest/run_test_cases.py

Issue 25478012: Make Progress support an arbitrary number of columns. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/tools/swarm_client@1_progress
Patch Set: Kept Progress.start public 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 adddef4d83b11506b0686d86de2a4da0372e60e3..8139a9e10bc117b18254aa84028b2768b4cb9638 100755
--- a/googletest/run_test_cases.py
+++ b/googletest/run_test_cases.py
@@ -1182,10 +1182,10 @@ def run_test_cases(
if gtest_output:
gtest_output = gen_gtest_output_dir(cwd, gtest_output)
- progress = threading_utils.Progress(len(test_cases))
+ columns = [('index', 0), ('size', len(test_cases))]
+ progress = threading_utils.Progress(columns)
progress.use_cr_only = not no_cr
- serial_tasks = threading_utils.QueueWithProgress(0)
- serial_tasks.set_progress(progress)
+ serial_tasks = threading_utils.QueueWithProgress(progress)
def add_serial_task(priority, func, *args, **kwargs):
"""Adds a serial task, to be executed later."""
« 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