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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py

Issue 2110833004: Remove "master." when getting master name in rietveld.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated test Created 4 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 | third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
index fb0761ede46056e544e03bb06ce538fa7cde0d4b..554cc4f32ef5ddcc6019dafff8c5050964444dd8 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
@@ -41,9 +41,15 @@ def latest_try_jobs(issue_number, builder_names, web, patchset_number=None):
for job in patchset_data['try_job_results']:
if job['builder'] not in builder_names:
continue
+ # The master name may be prefixed with "master.", or possibly not;
+ # We want to normalize master name by stripping this prefix.
+ # See http://crbug.com/624545.
+ master_name = job['master']
+ if master_name.startswith('master.'):
+ master_name = master_name[len('master.'):]
jobs.append(TryJob(
builder_name=job['builder'],
- master_name=job['master'],
+ master_name=master_name,
build_number=job['buildnumber']))
return jobs
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698