Make android_webview commits only try the android bot.
The logic in PRESUBMIT.py to only try a single OS bot when the changes are for a single OS doesn't work for the android_webview directory because the regex doesn't match at the top level. Tweak the regexes to allow mac/win/android to be the start of the full path. Now, webview code is recognised as being android-specific. R=maruel@chromium.org NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/10918102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155217 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -580,11 +580,11 @@ def GetPreferredTrySlaves(project, change):
|
||||
if not files:
|
||||
return []
|
||||
|
||||
if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files):
|
||||
if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files):
|
||||
return ['mac_rel', 'mac_asan']
|
||||
if all(re.search('[/_]win[/_.]', f) for f in files):
|
||||
if all(re.search('(^|[/_])win[/_.]', f) for f in files):
|
||||
return ['win_rel']
|
||||
if all(re.search('[/_]android[/_.]', f) for f in files):
|
||||
if all(re.search('(^|[/_])android[/_.]', f) for f in files):
|
||||
return ['android']
|
||||
|
||||
trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile',
|
||||
|
Reference in New Issue
Block a user