Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: scripts/slave/recipes/dart/dart_cross_tester.py

Issue 2319853002: Remove ignored bot_update "force" parameter. (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 'depot_tools/gclient', 7 'depot_tools/gclient',
8 'file', 8 'file',
9 'gsutil', 9 'gsutil',
10 'recipe_engine/path', 10 'recipe_engine/path',
(...skipping 12 matching lines...) Expand all
23 'target_arch': 'arm'}, 23 'target_arch': 'arm'},
24 } 24 }
25 25
26 def tarball_name(arch, mode, revision): 26 def tarball_name(arch, mode, revision):
27 return 'cross_build_%s_%s_%s.tar.bz2' % (arch, mode, revision) 27 return 'cross_build_%s_%s_%s.tar.bz2' % (arch, mode, revision)
28 28
29 def RunSteps(api): 29 def RunSteps(api):
30 api.gclient.set_config('dart') 30 api.gclient.set_config('dart')
31 api.path.c.dynamic_paths['tools'] = None 31 api.path.c.dynamic_paths['tools'] = None
32 revision = api.properties['revision'] 32 revision = api.properties['revision']
33 api.bot_update.ensure_checkout(force=True) 33 api.bot_update.ensure_checkout()
34 34
35 api.path['tools'] = api.path['checkout'].join('tools') 35 api.path['tools'] = api.path['checkout'].join('tools')
36 buildername = str(api.properties.get('buildername')) # Convert from unicode. 36 buildername = str(api.properties.get('buildername')) # Convert from unicode.
37 (buildername, _, channel) = buildername.rpartition('-') 37 (buildername, _, channel) = buildername.rpartition('-')
38 assert channel in ['be', 'dev', 'stable', 'integration'] 38 assert channel in ['be', 'dev', 'stable', 'integration']
39 buildername = buildername.replace('-recipe', '') 39 buildername = buildername.replace('-recipe', '')
40 b = builders[buildername] 40 b = builders[buildername]
41 41
42 api.python('clobber', 42 api.python('clobber',
43 api.path['tools'].join('clean_output_directory.py'), 43 api.path['tools'].join('clean_output_directory.py'),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 cwd=api.path['checkout']) 79 cwd=api.path['checkout'])
80 80
81 81
82 def GenTests(api): 82 def GenTests(api):
83 yield ( 83 yield (
84 api.test('target-arm-vm-linux-release') + 84 api.test('target-arm-vm-linux-release') +
85 api.platform('linux', 64) + 85 api.platform('linux', 64) +
86 api.properties.generic(mastername='client.dart', 86 api.properties.generic(mastername='client.dart',
87 buildername='target-arm-vm-linux-release-be', 87 buildername='target-arm-vm-linux-release-be',
88 revision='abcd1234efef5656')) 88 revision='abcd1234efef5656'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698