diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 23:06:13 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 23:06:13 +0000 |
commit | 5efb2a82105d7060f5e4b132640da6ff35cb568b (patch) | |
tree | b7353c9ea8efb1ba5dd471dbe72e3e5243da4f9e /PRESUBMIT.py | |
parent | 3443ae7c93d92aca3cdc958c87ae88fc7c55154c (diff) | |
download | chromium_src-5efb2a82105d7060f5e4b132640da6ff35cb568b.zip chromium_src-5efb2a82105d7060f5e4b132640da6ff35cb568b.tar.gz chromium_src-5efb2a82105d7060f5e4b132640da6ff35cb568b.tar.bz2 |
Don't send CLs with only *.mm files to non-Mac try bots by default.
Depends on: http://codereview.chromium.org/7925014/
BUG=none
TEST=Create a CL with only *.mm files: gcl/git try should send only to mac bot. Create a CL that has non-*.mm files: try should send to windows and linux bots too.
Review URL: http://codereview.chromium.org/8046013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 9b86bad..e125a57 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -245,5 +245,9 @@ def CheckChangeOnCommit(input_api, output_api): return results -def GetPreferredTrySlaves(): +def GetPreferredTrySlaves(project, change): + only_objc_files = all( + f.LocalPath().endswith(('.mm', '.m')) for f in change.AffectedFiles()) + if only_objc_files: + return ['mac'] return ['win', 'linux', 'mac'] |