Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Commit

Permalink
Merge 29b1baa into 25800da
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalpesh Krishna committed May 2, 2016
2 parents 25800da + 29b1baa commit a37fa7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mozci/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def get_buildername_metadata(buildername):
"""Return metadata associated to a buildername.
Returns a dictionary with the following information:
* build_type - It returns 'opt' or 'debug'
* build_type - It returns 'opt' or 'debug' or 'pgo'
* downstream - If the job requires an upstream job to be triggered
* job_type - It returns 'build', 'test' or 'talos'
* platform_name - It associates upstream & downstream builders (e.g. win32)
Expand Down Expand Up @@ -262,9 +262,13 @@ def get_buildername_metadata(buildername):
suite_name = None

if platform_name.endswith('-debug'):
# e.g. win32-debug
# e.g. win64-debug
platform_name = platform_name[:-len('-debug')]
build_type = 'debug'
elif platform_name.endswith('-pgo'):
# e.g. win32-pgo
platform_name = platform_name[:-len('-pgo')]
build_type = 'pgo'
else:
build_type = 'opt'

Expand Down

0 comments on commit a37fa7e

Please sign in to comment.