Bug 1331899 - Update fetchlogs script to work with taskcluster, r=emorley

MozReview-Commit-ID: 3ENwyvJaXJY
This commit is contained in:
James Graham 2017-01-16 18:32:16 +00:00
Родитель aa476ef0f3
Коммит 1002bd78bc
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -72,7 +72,7 @@ def get_blobber_url(branch, job):
if job_data:
try:
for item in job_data["results"]:
if item["value"] == "wpt_raw.log":
if item["value"] == "wpt_raw.log" or item["value"] == "log_raw.log":
return item["url"]
except:
return None
@ -96,7 +96,8 @@ def get_structured_logs(branch, commit, dest=None):
for result in job_data["results"]:
job_type_name = result["job_type_name"]
if job_type_name.startswith("W3C Web Platform"):
if (job_type_name.startswith("W3C Web Platform") or
job_type_name.startswith("test-") and "-web-platform-tests-" in job_type_name):
url = get_blobber_url(branch, result)
if url:
prefix = result["platform"] # platform