Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 2c07248b8ae82a935b7b7d882e9a665620c91ce5..aaf6544260c0ae6a01f42962b3f13d33ad133ffc 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -480,6 +480,9 @@ def CheckChangeOnCommit(input_api, output_api): |
def GetPreferredTrySlaves(project, change): |
files = change.LocalPaths() |
+ if not files: |
John Grabowski
2012/06/28 22:48:41
unnecessary
John Grabowski
2012/06/28 22:51:29
Hmm... all([]) is True. Unexpected.
|
+ return [] |
+ |
if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files): |
return ['mac_rel'] |
if all(re.search('[/_]win[/_.]', f) for f in files): |
@@ -492,9 +495,7 @@ def GetPreferredTrySlaves(project, change): |
if any(re.search('[/_]aura', f) for f in files): |
trybots.append('linux_chromeos') |
- # Ensure CL contains some relevant files (i.e. not purely ^chrome) |
- if any(re.search('^(base|build|content|ipc|jingle|media|net|sql)/', f) |
- for f in files): |
+ if not all(f.startswith('chrome/') for f in files): |
trybots.append('android') |
return trybots |