| 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 'recipe_engine/raw_io', |
| 6 'recipe_engine/path', | 7 'recipe_engine/path', |
| 7 'recipe_engine/platform', | 8 'recipe_engine/platform', |
| 8 'recipe_engine/properties', | 9 'recipe_engine/properties', |
| 9 'recipe_engine/python', | 10 'recipe_engine/python', |
| 11 'recipe_engine/step', |
| 10 'tryserver', | 12 'tryserver', |
| 11 ] | 13 ] |
| 12 | 14 |
| 13 | 15 |
| 14 def RunSteps(api): | 16 def RunSteps(api): |
| 17 if api.properties.get('patch_text'): |
| 18 api.step('patch_text test', [ |
| 19 'echo', str(api.tryserver.get_tags(api.properties['patch_text']))]) |
| 20 return |
| 21 |
| 15 api.path['checkout'] = api.path['slave_build'] | 22 api.path['checkout'] = api.path['slave_build'] |
| 16 api.tryserver.maybe_apply_issue() | 23 api.tryserver.maybe_apply_issue() |
| 24 api.tryserver.get_tags() |
| 17 api.tryserver.get_files_affected_by_patch() | 25 api.tryserver.get_files_affected_by_patch() |
| 18 | 26 |
| 19 if api.tryserver.is_tryserver: | 27 if api.tryserver.is_tryserver: |
| 20 api.tryserver.set_subproject_tag('v8') | 28 api.tryserver.set_subproject_tag('v8') |
| 21 | 29 |
| 22 api.tryserver.set_patch_failure_tryjob_result() | 30 api.tryserver.set_patch_failure_tryjob_result() |
| 23 api.tryserver.set_compile_failure_tryjob_result() | 31 api.tryserver.set_compile_failure_tryjob_result() |
| 24 api.tryserver.set_test_failure_tryjob_result() | 32 api.tryserver.set_test_failure_tryjob_result() |
| 25 api.tryserver.set_invalid_test_results_tryjob_result() | 33 api.tryserver.set_invalid_test_results_tryjob_result() |
| 26 | 34 |
| 27 with api.tryserver.set_failure_hash(): | 35 with api.tryserver.set_failure_hash(): |
| 28 api.python.failing_step('fail', 'foo') | 36 api.python.failing_step('fail', 'foo') |
| 29 | 37 |
| 30 | 38 |
| 31 def GenTests(api): | 39 def GenTests(api): |
| 40 description_step = api.override_step_data( |
| 41 'Get description', api.raw_io.output("foobar")) |
| 32 yield (api.test('with_svn_patch') + | 42 yield (api.test('with_svn_patch') + |
| 33 api.properties(patch_url='svn://checkout.url')) | 43 api.properties(patch_url='svn://checkout.url') + |
| 44 description_step) |
| 34 | 45 |
| 35 yield (api.test('with_git_patch') + | 46 yield (api.test('with_git_patch') + |
| 36 api.properties( | 47 api.properties( |
| 37 patch_storage='git', | 48 patch_storage='git', |
| 38 patch_project='v8', | 49 patch_project='v8', |
| 39 patch_repo_url='http://patch.url/', | 50 patch_repo_url='http://patch.url/', |
| 40 patch_ref='johndoe#123.diff')) | 51 patch_ref='johndoe#123.diff') + |
| 52 description_step) |
| 41 | 53 |
| 42 yield (api.test('with_rietveld_patch') + | 54 yield (api.test('with_rietveld_patch') + |
| 43 api.properties.tryserver()) | 55 api.properties.tryserver() + |
| 56 description_step) |
| 44 | 57 |
| 45 yield (api.test('with_wrong_patch') + api.platform('win', 32)) | 58 yield (api.test('with_wrong_patch') + api.platform('win', 32) + |
| 59 description_step) |
| 60 |
| 61 yield (api.test('basic_tags') + |
| 62 api.properties( |
| 63 patch_text="hihihi\nfoo=bar") |
| 64 ) |
| OLD | NEW |