| 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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'chromium', | 7 'chromium', |
| 8 'file', | 8 'file', |
| 9 'depot_tools/gclient', | 9 'depot_tools/gclient', |
| 10 'gsutil', | 10 'gsutil', |
| 11 'recipe_engine/path', | 11 'recipe_engine/path', |
| 12 'recipe_engine/properties', | 12 'recipe_engine/properties', |
| 13 'recipe_engine/step', | 13 'recipe_engine/step', |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 | 16 |
| 17 def RunSteps(api): | 17 def RunSteps(api): |
| 18 kwargs = {} | 18 kwargs = {} |
| 19 kwargs['TARGET_PLATFORM'] = 'android' | 19 kwargs['TARGET_PLATFORM'] = 'android' |
| 20 kwargs['TARGET_ARCH'] = 'arm' | 20 kwargs['TARGET_ARCH'] = 'arm' |
| 21 | 21 |
| 22 api.chromium.set_config('chromium', **kwargs) | 22 api.chromium.set_config('chromium', **kwargs) |
| 23 api.gclient.set_config('chromium', **kwargs) | 23 api.gclient.set_config('chromium', GIT_MODE=True, **kwargs) |
| 24 api.gclient.apply_config('android') | 24 api.gclient.apply_config('android') |
| 25 step_result = api.bot_update.ensure_checkout() | 25 step_result = api.bot_update.ensure_checkout() |
| 26 # Whatever step is run right before this line needs to emit got_revision. | 26 # Whatever step is run right before this line needs to emit got_revision. |
| 27 got_revision = step_result.presentation.properties['got_revision'] | 27 got_revision = step_result.presentation.properties['got_revision'] |
| 28 | 28 |
| 29 harness_file = 'telemetry-%s.zip' % got_revision | 29 harness_file = 'telemetry-%s.zip' % got_revision |
| 30 harness_path = api.path.mkdtemp('telemetry-harness') | 30 harness_path = api.path.mkdtemp('telemetry-harness') |
| 31 | 31 |
| 32 api.step('create harness archive', [ | 32 api.step('create harness archive', [ |
| 33 api.path['checkout'].join( | 33 api.path['checkout'].join( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 46 api.file.rmtree('remove harness temp directory', harness_path) | 46 api.file.rmtree('remove harness temp directory', harness_path) |
| 47 | 47 |
| 48 | 48 |
| 49 def GenTests(api): | 49 def GenTests(api): |
| 50 yield ( | 50 yield ( |
| 51 api.test('basic') + | 51 api.test('basic') + |
| 52 api.properties.generic( | 52 api.properties.generic( |
| 53 mastername='chromium.lkgr', | 53 mastername='chromium.lkgr', |
| 54 buildername='Telemetry Harness Upload') | 54 buildername='Telemetry Harness Upload') |
| 55 ) | 55 ) |
| OLD | NEW |