| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'bot_update', | 6 'bot_update', |
| 7 'gclient', | 7 'gclient', |
| 8 'recipe_engine/path', | 8 'recipe_engine/path', |
| 9 'recipe_engine/properties', | 9 'recipe_engine/properties', |
| 10 ] | 10 ] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 patch = api.properties.get('patch', True) | 23 patch = api.properties.get('patch', True) |
| 24 clobber = True if api.properties.get('clobber') else False | 24 clobber = True if api.properties.get('clobber') else False |
| 25 force = True if api.properties.get('force') else False | 25 force = True if api.properties.get('force') else False |
| 26 no_shallow = True if api.properties.get('no_shallow') else False | 26 no_shallow = True if api.properties.get('no_shallow') else False |
| 27 output_manifest = api.properties.get('output_manifest', False) | 27 output_manifest = api.properties.get('output_manifest', False) |
| 28 with_branch_heads = api.properties.get('with_branch_heads', False) | 28 with_branch_heads = api.properties.get('with_branch_heads', False) |
| 29 refs = api.properties.get('refs', []) | 29 refs = api.properties.get('refs', []) |
| 30 oauth2 = api.properties.get('oauth2', False) | 30 oauth2 = api.properties.get('oauth2', False) |
| 31 root_solution_revision = api.properties.get('root_solution_revision') | 31 root_solution_revision = api.properties.get('root_solution_revision') |
| 32 suffix = api.properties.get('suffix') | 32 suffix = api.properties.get('suffix') |
| 33 gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False |
| 33 api.bot_update.ensure_checkout(force=force, | 34 api.bot_update.ensure_checkout(force=force, |
| 34 no_shallow=no_shallow, | 35 no_shallow=no_shallow, |
| 35 patch=patch, | 36 patch=patch, |
| 36 with_branch_heads=with_branch_heads, | 37 with_branch_heads=with_branch_heads, |
| 37 output_manifest=output_manifest, | 38 output_manifest=output_manifest, |
| 38 refs=refs, patch_oauth2=oauth2, | 39 refs=refs, patch_oauth2=oauth2, |
| 39 clobber=clobber, | 40 clobber=clobber, |
| 40 root_solution_revision=root_solution_revision, | 41 root_solution_revision=root_solution_revision, |
| 41 suffix=suffix) | 42 suffix=suffix, |
| 43 gerrit_no_reset=gerrit_no_reset) |
| 42 | 44 |
| 43 | 45 |
| 44 def GenTests(api): | 46 def GenTests(api): |
| 45 yield api.test('basic') + api.properties( | 47 yield api.test('basic') + api.properties( |
| 46 mastername='chromium.linux', | 48 mastername='chromium.linux', |
| 47 buildername='Linux Builder', | 49 buildername='Linux Builder', |
| 48 slavename='totallyaslave-m1', | 50 slavename='totallyaslave-m1', |
| 49 patch=False, | 51 patch=False, |
| 50 revision='abc' | 52 revision='abc' |
| 51 ) | 53 ) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 buildername='Experimental Builder', | 138 buildername='Experimental Builder', |
| 137 slavename='somehost', | 139 slavename='somehost', |
| 138 clobber=1 | 140 clobber=1 |
| 139 ) | 141 ) |
| 140 yield api.test('reset_root_solution_revision') + api.properties( | 142 yield api.test('reset_root_solution_revision') + api.properties( |
| 141 mastername='experimental', | 143 mastername='experimental', |
| 142 buildername='Experimental Builder', | 144 buildername='Experimental Builder', |
| 143 slavename='somehost', | 145 slavename='somehost', |
| 144 root_solution_revision='revision', | 146 root_solution_revision='revision', |
| 145 ) | 147 ) |
| 148 yield api.test('gerrit_no_reset') + api.properties( |
| 149 mastername='experimental', |
| 150 buildername='Experimental Builder', |
| 151 slavename='somehost', |
| 152 gerrit_no_reset=1 |
| 153 ) |
| 146 yield api.test('tryjob_v8') + api.properties( | 154 yield api.test('tryjob_v8') + api.properties( |
| 147 mastername='tryserver.chromium.linux', | 155 mastername='tryserver.chromium.linux', |
| 148 buildername='linux_rel', | 156 buildername='linux_rel', |
| 149 slavename='totallyaslave-c4', | 157 slavename='totallyaslave-c4', |
| 150 issue=12345, | 158 issue=12345, |
| 151 patchset=654321, | 159 patchset=654321, |
| 152 patch_url='http://src.chromium.org/foo/bar', | 160 patch_url='http://src.chromium.org/foo/bar', |
| 153 patch_project='v8', | 161 patch_project='v8', |
| 154 revisions={'src/v8': 'abc'} | 162 revisions={'src/v8': 'abc'} |
| 155 ) | 163 ) |
| OLD | NEW |