| 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 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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', | 27 'name': 'BattOr Smoke Tests', |
| 28 'path': 'common/battor/battor/battor_wrapper_devicetest.py', | 28 'path': 'common/battor/battor/battor_wrapper_devicetest.py', |
| 29 }, | 29 }, |
| 30 { | 30 { |
| 31 'name': 'BattOr Unit Tests', |
| 32 'path': 'common/battor/bin/run_py_tests', |
| 33 }, |
| 34 { |
| 31 'name': 'Build Python Tests', | 35 'name': 'Build Python Tests', |
| 32 'path': 'catapult_build/bin/run_py_tests', | 36 'path': 'catapult_build/bin/run_py_tests', |
| 33 }, | 37 }, |
| 34 { | 38 { |
| 35 'name': 'Catapult Base Tests', | 39 'name': 'Catapult Base Tests', |
| 36 'path': 'catapult_base/bin/run_tests', | 40 'path': 'catapult_base/bin/run_tests', |
| 37 }, | 41 }, |
| 38 { | 42 { |
| 39 'name': 'Dashboard Dev Server Tests Canary', | 43 'name': 'Dashboard Dev Server Tests Canary', |
| 40 'path': 'dashboard/bin/run_dev_server_tests', | 44 'path': 'dashboard/bin/run_dev_server_tests', |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' | 208 step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' |
| 205 if test.get('outputs_presentation_json'): | 209 if test.get('outputs_presentation_json'): |
| 206 step['outputs_presentation_json'] = True | 210 step['outputs_presentation_json'] = True |
| 207 steps.append(step) | 211 steps.append(step) |
| 208 with open(args.output_json, 'w') as outfile: | 212 with open(args.output_json, 'w') as outfile: |
| 209 json.dump(steps, outfile) | 213 json.dump(steps, outfile) |
| 210 | 214 |
| 211 | 215 |
| 212 if __name__ == '__main__': | 216 if __name__ == '__main__': |
| 213 main(sys.argv[1:]) | 217 main(sys.argv[1:]) |
| OLD | NEW |