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

Unified Diff: scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py

Issue 1050253003: Changed the step name for wait_for_any.py to include only one revision. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@hax
Patch Set: Removing colon. Created 5 years, 9 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
Index: scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py
diff --git a/scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py b/scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py
index 4964b9f804b28f1c9e1ac3f42d31f2bce9f06544..743e21116e28d4790e867279593ca0a878106f17 100755
--- a/scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py
+++ b/scripts/slave/recipe_modules/auto_bisect/resources/wait_for_any.py
@@ -51,7 +51,6 @@ def _is_gs_url(url):
def _run_gsutil(cmd):
# Sleep for a short time between gsutil calls
time.sleep(SHORT_INTERVAL)
- global gsutil_path
cmd = [gsutil_path] + cmd
try:
out = subprocess.check_output(cmd)
@@ -69,7 +68,7 @@ def _check_buildbot_job(url):
if build_status_dict['currentStep'] is None:
print url, " finished."
return True
- except:
+ except Exception:
print "Could not retrieve or parse the buildbot url: ", url
return False
@@ -85,6 +84,8 @@ def main(argv):
print usage % argv[0]
return 1
+ list_of_urls = ', '.join(['<%s>' % url for url in argv[2:]])
+ print 'Waiting for the following urls: ' + list_of_urls
global gsutil_path
start_time = time.time()
gsutil_path = argv[1]
@@ -111,7 +112,6 @@ def main(argv):
if time.time() - start_time > TIMEOUT_INTERVAL:
print "Timed out waiting for: ", urls
return 1
- print "No jobs ready, sleeping."
time.sleep(LONG_INTERVAL)
print "No jobs to check."
return 0

Powered by Google App Engine
This is Rietveld 408576698