diff options
author | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 18:16:59 +0000 |
---|---|---|
committer | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 18:16:59 +0000 |
commit | d668899a93d2703291133659a26f725c54dfa46d (patch) | |
tree | 3b44d7832c447e284ab912f5987a3623a660802a /PRESUBMIT.py | |
parent | 36e83be0d9137b4c4e7cac89e0843b160e0ec44d (diff) | |
download | chromium_src-d668899a93d2703291133659a26f725c54dfa46d.zip chromium_src-d668899a93d2703291133659a26f725c54dfa46d.tar.gz chromium_src-d668899a93d2703291133659a26f725c54dfa46d.tar.bz2 |
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
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index a34c60a..773d700 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -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', |