summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 23:12:17 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 23:12:17 +0000
commit751b05fad763942db4a538eac7382a64ad7c58d7 (patch)
tree1953d2db149f119770871ef4e96cb58964074f20 /PRESUBMIT.py
parent89c7a1c8efe0f6d752c2ceb5907423318a6b324c (diff)
downloadchromium_src-751b05fad763942db4a538eac7382a64ad7c58d7.zip
chromium_src-751b05fad763942db4a538eac7382a64ad7c58d7.tar.gz
chromium_src-751b05fad763942db4a538eac7382a64ad7c58d7.tar.bz2
Don't issue try jobs for OWNERS-only changes.
BUG=None R=maruel@chromium.org TEST=PRESUBMIT_test.py, less needless try jobs. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11830057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 17e3091..a738477 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -829,7 +829,7 @@ def CheckChangeOnCommit(input_api, output_api):
def GetPreferredTrySlaves(project, change):
files = change.LocalPaths()
- if not files:
+ if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files):
return []
if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files):