diff options
author | borenet <borenet@google.com> | 2015-06-04 15:15:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-04 15:15:42 -0700 |
commit | af6005c8a20cea18d515f55b9f5bb1ee8e8b6833 (patch) | |
tree | b87467a03b436e31dafba20ebbfc72a0b913dc13 /PRESUBMIT.py | |
parent | 0bb8c1f2b6f863db22d2d945abf6937121e3a964 (diff) |
Presubmit: add PRESUBMIT=false to non-master branch changes
BUG=skia:
Review URL: https://codereview.chromium.org/1161973005
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 6d429dfa1c..5599c316c3 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -343,6 +343,8 @@ def PostUploadHook(cl, change, output_api): need to be gated on the master branch's tree. * Adds 'NOTRY=true' for non master branch changes since trybots do not yet work on them. + * Adds 'NOPRESUBMIT=true' for non master branch changes since those don't + run the presubmit checks. """ results = [] @@ -405,6 +407,12 @@ def PostUploadHook(cl, change, output_api): output_api.PresubmitNotifyResult( 'Trybots do not yet work for non-master branches. ' 'Automatically added \'NOTRY=true\' to the CL\'s description')) + if not re.search( + r'^NOPRESUBMIT=true$', new_description, re.M | re.I): + new_description += "\nNOPRESUBMIT=true" + results.append( + output_api.PresubmitNotifyResult( + 'Branch changes do not run the presubmit checks.')) # Read and process the HASHTAGS file. hashtags_fullpath = os.path.join(change._local_root, 'HASHTAGS') |