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: au_test_harness/parallel_test_job.py

Issue 6857004: Clean up extreme verbosity of logs in test harness. (Closed) Base URL: http://git.chromium.org/git/crostestutils.git@master
Patch Set: Last patch Created 9 years, 8 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 | « au_test_harness/dummy_au_worker.py ('k') | au_test_harness/real_au_worker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: au_test_harness/parallel_test_job.py
diff --git a/au_test_harness/parallel_test_job.py b/au_test_harness/parallel_test_job.py
index 5c563a03f51b46fecb0655001ac45e701ce83153..589b0af1bcbb9f8bab27e59cef82e316d811f100 100644
--- a/au_test_harness/parallel_test_job.py
+++ b/au_test_harness/parallel_test_job.py
@@ -64,17 +64,22 @@ class ParallelJob(multiprocessing.Process):
if not active_job:
active_job = parallel_job
- return (active_count, parallel_job)
+ return (active_count, active_job)
+ first_time = True
start_time = time.time()
while (time.time() - start_time) < cls.MAX_TIMEOUT_SECONDS:
(active_count, active_job) = GetCurrentActiveCount()
if active_count == 0:
return
else:
- print >> sys.stderr, (
- 'Process Pool Active: Waiting on %d/%d jobs to complete' %
- (active_count, len(parallel_jobs)))
+ if not first_time:
+ print (
+ 'Process Pool Active: Waiting on %d/%d jobs to complete' %
+ (active_count, len(parallel_jobs)))
+ else:
+ first_time = False
+
active_job.join(cls.SLEEP_TIMEOUT_SECONDS)
time.sleep(5) # Prevents lots of printing out as job is ending.
« no previous file with comments | « au_test_harness/dummy_au_worker.py ('k') | au_test_harness/real_au_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698