| 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 25 matching lines...) Expand all Loading... |
| 36 with_branch_heads=with_branch_heads, | 36 with_branch_heads=with_branch_heads, |
| 37 output_manifest=output_manifest, | 37 output_manifest=output_manifest, |
| 38 refs=refs, patch_oauth2=oauth2, | 38 refs=refs, patch_oauth2=oauth2, |
| 39 clobber=clobber, | 39 clobber=clobber, |
| 40 root_solution_revision=root_solution_revision, | 40 root_solution_revision=root_solution_revision, |
| 41 suffix=suffix) | 41 suffix=suffix) |
| 42 | 42 |
| 43 | 43 |
| 44 def GenTests(api): | 44 def GenTests(api): |
| 45 yield api.test('basic') + api.properties( | 45 yield api.test('basic') + api.properties( |
| 46 mastername='chromium.linux', | |
| 47 buildername='Linux Builder', | |
| 48 slavename='totallyaslave-m1', | |
| 49 patch=False, | 46 patch=False, |
| 50 revision='abc' | 47 revision='abc' |
| 51 ) | 48 ) |
| 52 yield api.test('basic_with_branch_heads') + api.properties( | 49 yield api.test('basic_with_branch_heads') + api.properties( |
| 53 mastername='chromium.linux', | |
| 54 buildername='Linux Builder', | |
| 55 slavename='totallyaslave-m1', | |
| 56 with_branch_heads=True, | 50 with_branch_heads=True, |
| 57 suffix='with branch heads' | 51 suffix='with branch heads' |
| 58 ) | 52 ) |
| 59 yield api.test('basic_output_manifest') + api.properties( | 53 yield api.test('basic_output_manifest') + api.properties( |
| 60 mastername='chromium.linux', | |
| 61 buildername='Linux Builder', | |
| 62 slavename='totallyaslave-m1', | |
| 63 output_manifest=True, | 54 output_manifest=True, |
| 64 ) | 55 ) |
| 65 yield api.test('tryjob') + api.properties( | 56 yield api.test('tryjob') + api.properties( |
| 66 mastername='tryserver.chromium.linux', | |
| 67 buildername='linux_rel', | |
| 68 slavename='totallyaslave-c4', | |
| 69 issue=12345, | 57 issue=12345, |
| 70 patchset=654321, | 58 patchset=654321, |
| 71 patch_url='http://src.chromium.org/foo/bar' | 59 patch_url='http://src.chromium.org/foo/bar' |
| 72 ) | 60 ) |
| 73 yield api.test('trychange') + api.properties( | 61 yield api.test('trychange') + api.properties( |
| 74 mastername='tryserver.chromium.linux', | |
| 75 buildername='linux_rel', | |
| 76 slavename='totallyaslave-c4', | |
| 77 refs=['+refs/change/1/2/333'], | 62 refs=['+refs/change/1/2/333'], |
| 78 ) | 63 ) |
| 79 yield api.test('trychange_oauth2') + api.properties( | 64 yield api.test('trychange_oauth2') + api.properties( |
| 80 mastername='tryserver.chromium.linux', | |
| 81 buildername='linux_rel', | |
| 82 slavename='totallyaslave-c4', | |
| 83 oauth2=True, | 65 oauth2=True, |
| 84 ) | 66 ) |
| 85 yield api.test('tryjob_fail') + api.properties( | 67 yield api.test('tryjob_fail') + api.properties( |
| 86 mastername='tryserver.chromium.linux', | |
| 87 buildername='linux_rel', | |
| 88 slavename='totallyaslave-c4', | |
| 89 issue=12345, | 68 issue=12345, |
| 90 patchset=654321, | 69 patchset=654321, |
| 91 patch_url='http://src.chromium.org/foo/bar', | 70 patch_url='http://src.chromium.org/foo/bar', |
| 92 ) + api.step_data('bot_update', retcode=1) | 71 ) + api.step_data('bot_update', retcode=1) |
| 93 yield api.test('tryjob_fail_patch') + api.properties( | 72 yield api.test('tryjob_fail_patch') + api.properties( |
| 94 mastername='tryserver.chromium.linux', | |
| 95 buildername='linux_rel', | |
| 96 slavename='totallyaslave-c4', | |
| 97 issue=12345, | 73 issue=12345, |
| 98 patchset=654321, | 74 patchset=654321, |
| 99 patch_url='http://src.chromium.org/foo/bar', | 75 patch_url='http://src.chromium.org/foo/bar', |
| 100 fail_patch='apply', | 76 fail_patch='apply', |
| 101 ) + api.step_data('bot_update', retcode=88) | 77 ) + api.step_data('bot_update', retcode=88) |
| 102 yield api.test('tryjob_fail_patch_download') + api.properties( | 78 yield api.test('tryjob_fail_patch_download') + api.properties( |
| 103 mastername='tryserver.chromium.linux', | |
| 104 buildername='linux_rel', | |
| 105 slavename='totallyaslave-c4', | |
| 106 issue=12345, | 79 issue=12345, |
| 107 patchset=654321, | 80 patchset=654321, |
| 108 patch_url='http://src.chromium.org/foo/bar', | 81 patch_url='http://src.chromium.org/foo/bar', |
| 109 fail_patch='download' | 82 fail_patch='download' |
| 110 ) + api.step_data('bot_update', retcode=87) | 83 ) + api.step_data('bot_update', retcode=87) |
| 111 yield api.test('forced') + api.properties( | 84 yield api.test('forced') + api.properties( |
| 112 mastername='experimental', | |
| 113 buildername='Experimental Builder', | |
| 114 slavename='somehost', | |
| 115 force=1 | 85 force=1 |
| 116 ) | 86 ) |
| 117 yield api.test('no_shallow') + api.properties( | 87 yield api.test('no_shallow') + api.properties( |
| 118 mastername='experimental', | |
| 119 buildername='Experimental Builder', | |
| 120 slavename='somehost', | |
| 121 no_shallow=1 | 88 no_shallow=1 |
| 122 ) | 89 ) |
| 123 yield api.test('off') + api.properties( | |
| 124 mastername='experimental', | |
| 125 buildername='Experimental Builder', | |
| 126 slavename='somehost', | |
| 127 ) | |
| 128 yield api.test('svn_mode') + api.properties( | |
| 129 mastername='experimental.svn', | |
| 130 buildername='Experimental SVN Builder', | |
| 131 slavename='somehost', | |
| 132 force=1 | |
| 133 ) | |
| 134 yield api.test('clobber') + api.properties( | 90 yield api.test('clobber') + api.properties( |
| 135 mastername='experimental', | |
| 136 buildername='Experimental Builder', | |
| 137 slavename='somehost', | |
| 138 clobber=1 | 91 clobber=1 |
| 139 ) | 92 ) |
| 140 yield api.test('reset_root_solution_revision') + api.properties( | 93 yield api.test('reset_root_solution_revision') + api.properties( |
| 141 mastername='experimental', | |
| 142 buildername='Experimental Builder', | |
| 143 slavename='somehost', | |
| 144 root_solution_revision='revision', | 94 root_solution_revision='revision', |
| 145 ) | 95 ) |
| 146 yield api.test('tryjob_v8') + api.properties( | 96 yield api.test('tryjob_v8') + api.properties( |
| 147 mastername='tryserver.chromium.linux', | |
| 148 buildername='linux_rel', | |
| 149 slavename='totallyaslave-c4', | |
| 150 issue=12345, | 97 issue=12345, |
| 151 patchset=654321, | 98 patchset=654321, |
| 152 patch_url='http://src.chromium.org/foo/bar', | 99 patch_url='http://src.chromium.org/foo/bar', |
| 153 patch_project='v8', | 100 patch_project='v8', |
| 154 revisions={'src/v8': 'abc'} | 101 revisions={'src/v8': 'abc'} |
| 155 ) | 102 ) |
| OLD | NEW |