OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """Launches the gatekeeper.""" | 5 """Launches the gatekeeper.""" |
6 | 6 |
7 | 7 |
8 DEPS = [ | 8 DEPS = [ |
| 9 'depot_tools/infra_paths', |
9 'gatekeeper', | 10 'gatekeeper', |
10 'recipe_engine/path', | 11 'recipe_engine/path', |
11 ] | 12 ] |
12 | 13 |
13 | 14 |
14 def RunSteps(api): | 15 def RunSteps(api): |
15 api.gatekeeper( | 16 api.gatekeeper( |
16 api.path['build'].join('scripts', 'slave', 'gatekeeper.json'), | 17 api.infra_paths['build'].join('scripts', 'slave', 'gatekeeper.json'), |
17 api.path['build'].join('scripts', 'slave', 'gatekeeper_trees.json'), | 18 api.infra_paths['build'].join('scripts', 'slave', 'gatekeeper_trees.json'), |
18 ) | 19 ) |
19 | 20 |
20 | 21 |
21 def GenTests(api): | 22 def GenTests(api): |
22 yield ( | 23 yield ( |
23 api.test('basic') | 24 api.test('basic') |
24 + api.step_data( | 25 + api.step_data( |
25 'reading gatekeeper_trees.json', | 26 'reading gatekeeper_trees.json', |
26 api.gatekeeper.fake_test_data(), | 27 api.gatekeeper.fake_test_data(), |
27 ) | 28 ) |
28 ) | 29 ) |
29 | 30 |
30 yield ( | 31 yield ( |
31 api.test('keep_going') | 32 api.test('keep_going') |
32 + api.step_data( | 33 + api.step_data( |
33 'reading gatekeeper_trees.json', | 34 'reading gatekeeper_trees.json', |
34 api.gatekeeper.fake_test_data(), | 35 api.gatekeeper.fake_test_data(), |
35 ) | 36 ) |
36 + api.step_data('gatekeeper: chromium', retcode=1) | 37 + api.step_data('gatekeeper: chromium', retcode=1) |
37 ) | 38 ) |
OLD | NEW |