OLD | NEW |
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 | 5 |
6 # Recipe module for Skia Swarming test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'depot_tools/infra_paths', | |
11 'recipe_engine/json', | 10 'recipe_engine/json', |
12 'recipe_engine/path', | 11 'recipe_engine/path', |
13 'recipe_engine/platform', | 12 'recipe_engine/platform', |
14 'recipe_engine/properties', | 13 'recipe_engine/properties', |
15 'recipe_engine/raw_io', | 14 'recipe_engine/raw_io', |
16 'skia', | 15 'skia', |
17 ] | 16 ] |
18 | 17 |
19 | 18 |
20 TEST_BUILDERS = { | 19 TEST_BUILDERS = { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 for slavename, builders_by_slave in slaves.iteritems(): | 66 for slavename, builders_by_slave in slaves.iteritems(): |
68 for builder in builders_by_slave: | 67 for builder in builders_by_slave: |
69 test = ( | 68 test = ( |
70 api.test(builder) + | 69 api.test(builder) + |
71 api.properties(buildername=builder, | 70 api.properties(buildername=builder, |
72 mastername=mastername, | 71 mastername=mastername, |
73 slavename=slavename, | 72 slavename=slavename, |
74 buildnumber=5, | 73 buildnumber=5, |
75 revision='abc123', | 74 revision='abc123', |
76 swarm_out_dir='[SWARM_OUT_DIR]') + | 75 swarm_out_dir='[SWARM_OUT_DIR]') + |
77 api.infra_paths.exists( | 76 api.path.exists( |
78 api.infra_paths['slave_build'].join('skia'), | 77 api.path['slave_build'].join('skia'), |
79 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.t
xt') | 78 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
80 ) | 79 ) |
81 ) | 80 ) |
82 if ('Android' in builder and | 81 if ('Android' in builder and |
83 ('Test' in builder or 'Perf' in builder) and | 82 ('Test' in builder or 'Perf' in builder) and |
84 not 'Appurify' in builder): | 83 not 'Appurify' in builder): |
85 test += AndroidTestData(builder) | 84 test += AndroidTestData(builder) |
86 if 'Trybot' in builder: | 85 if 'Trybot' in builder: |
87 test += api.properties(issue=500, | 86 test += api.properties(issue=500, |
88 patchset=1, | 87 patchset=1, |
89 rietveld='https://codereview.chromium.org') | 88 rietveld='https://codereview.chromium.org') |
90 if 'Win' in builder: | 89 if 'Win' in builder: |
91 test += api.platform('win', 64) | 90 test += api.platform('win', 64) |
92 | 91 |
93 | 92 |
94 yield test | 93 yield test |
95 | 94 |
OLD | NEW |