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

Unified Diff: run_isolated.py

Issue 18645002: Print to stdout when spending a long time downloading files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Responding to comments Created 7 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: run_isolated.py
diff --git a/run_isolated.py b/run_isolated.py
index f70cd16ba296f78dd1b87472975c9d8ad497012c..0e14077562ee8e0412f6bc56f0f4dbb6ea22eef6 100755
--- a/run_isolated.py
+++ b/run_isolated.py
@@ -1776,7 +1776,9 @@ def download_test_data(isolated_hash, target_directory, remote):
os.chmod(outfile, properties['m'])
if time.time() - last_update > DELAY_BETWEEN_UPDATES_IN_SECS:
- logging.info('%d files remaining...' % len(remaining))
+ msg = '%d files remaining...' % len(remaining)
+ print msg
+ logging.info(msg)
last_update = time.time()
print('.isolated files successfully downloaded and setup in %s' %
@@ -1832,7 +1834,9 @@ def run_tha_test(isolated_hash, cache_dir, remote, policies):
os.chmod(outfile, properties['m'])
if time.time() - last_update > DELAY_BETWEEN_UPDATES_IN_SECS:
- logging.info('%d files remaining...' % len(remaining))
+ msg = '%d files remaining...' % len(remaining)
+ print msg
+ logging.info(msg)
last_update = time.time()
if settings.read_only:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698