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

Side by Side Diff: catapult_build/build_steps.py

Issue 1920023002: [BattOr] Add real device smoke test (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | common/battor/battor/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import argparse 5 import argparse
6 import json 6 import json
7 import os 7 import os
8 import sys 8 import sys
9 9
10 # This is the list of tests to run. It is a dictionary with the following 10 # This is the list of tests to run. It is a dictionary with the following
11 # fields: 11 # fields:
12 # 12 #
13 # name (required): The name of the step, to show on the buildbot status page. 13 # name (required): The name of the step, to show on the buildbot status page.
14 # path (required): The path to the executable which runs the tests. 14 # path (required): The path to the executable which runs the tests.
15 # additional_args (optional): An array of optional arguments. 15 # additional_args (optional): An array of optional arguments.
16 # uses_app_engine_sdk (optional): True if app engine SDK must be in PYTHONPATH. 16 # uses_app_engine_sdk (optional): True if app engine SDK must be in PYTHONPATH.
17 # uses_sandbox_env (optional): True if CHROME_DEVEL_SANDBOX must be in 17 # uses_sandbox_env (optional): True if CHROME_DEVEL_SANDBOX must be in
18 # environment. 18 # environment.
19 # disabled (optional): List of platforms the test is disabled on. May contain 19 # disabled (optional): List of platforms the test is disabled on. May contain
20 # 'win', 'mac', or 'linux'. 20 # 'win', 'mac', or 'linux'.
21 # outputs_presentation_json (optional): If True, pass in --presentation-json 21 # outputs_presentation_json (optional): If True, pass in --presentation-json
22 # argument to the test executable to allow it to update the buildbot status 22 # argument to the test executable to allow it to update the buildbot status
23 # page. More details here: 23 # page. More details here:
24 # github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py 24 # github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py
25 _CATAPULT_TESTS = [ 25 _CATAPULT_TESTS = [
26 { 26 {
27 'name': 'BattOr Smoke Tests',
28 'path': 'common/battor/battor/battor_wrapper_devicetest.py',
29 },
30 {
27 'name': 'Build Python Tests', 31 'name': 'Build Python Tests',
28 'path': 'catapult_build/bin/run_py_tests', 32 'path': 'catapult_build/bin/run_py_tests',
29 }, 33 },
30 { 34 {
31 'name': 'Catapult Base Tests', 35 'name': 'Catapult Base Tests',
32 'path': 'catapult_base/bin/run_tests', 36 'path': 'catapult_base/bin/run_tests',
33 }, 37 },
34 { 38 {
35 'name': 'Dashboard Dev Server Tests Canary', 39 'name': 'Dashboard Dev Server Tests Canary',
36 'path': 'dashboard/bin/run_dev_server_tests', 40 'path': 'dashboard/bin/run_dev_server_tests',
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' 204 step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox'
201 if test.get('outputs_presentation_json'): 205 if test.get('outputs_presentation_json'):
202 step['outputs_presentation_json'] = True 206 step['outputs_presentation_json'] = True
203 steps.append(step) 207 steps.append(step)
204 with open(args.output_json, 'w') as outfile: 208 with open(args.output_json, 'w') as outfile:
205 json.dump(steps, outfile) 209 json.dump(steps, outfile)
206 210
207 211
208 if __name__ == '__main__': 212 if __name__ == '__main__':
209 main(sys.argv[1:]) 213 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | common/battor/battor/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698