| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 84         'name': 'Devil Python Tests', | 84         'name': 'Devil Python Tests', | 
| 85         'path': 'devil/bin/run_py_tests', | 85         'path': 'devil/bin/run_py_tests', | 
| 86         'disabled': ['mac', 'win'], | 86         'disabled': ['mac', 'win'], | 
| 87     }, | 87     }, | 
| 88     { | 88     { | 
| 89         'name': 'eslint Tests', | 89         'name': 'eslint Tests', | 
| 90         'path': 'common/eslint/bin/run_tests', | 90         'path': 'common/eslint/bin/run_tests', | 
| 91         'disabled': ['android'], | 91         'disabled': ['android'], | 
| 92     }, | 92     }, | 
| 93     { | 93     { | 
| 94         'name': 'NetLog Viewer Dev Server Tests', |  | 
| 95         'path': 'netlog_viewer/bin/run_dev_server_tests', |  | 
| 96         'additional_args': [ |  | 
| 97             '--no-install-hooks', |  | 
| 98             '--no-use-local-chrome', |  | 
| 99         ], |  | 
| 100         'disabled': ['android'], |  | 
| 101     }, |  | 
| 102     { |  | 
| 103         'name': 'Py-vulcanize Tests', | 94         'name': 'Py-vulcanize Tests', | 
| 104         'path': 'third_party/py_vulcanize/bin/run_py_tests', | 95         'path': 'third_party/py_vulcanize/bin/run_py_tests', | 
| 105         'additional_args': ['--no-install-hooks'], | 96         'additional_args': ['--no-install-hooks'], | 
| 106         'disabled': ['android'], | 97         'disabled': ['android'], | 
| 107     }, | 98     }, | 
| 108     { | 99     { | 
| 109         'name': 'Systrace Tests', | 100         'name': 'Systrace Tests', | 
| 110         'path': 'systrace/bin/run_tests', | 101         'path': 'systrace/bin/run_tests', | 
| 111     }, | 102     }, | 
| 112     { | 103     { | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 160         'name': 'Tracing Python Tests', | 151         'name': 'Tracing Python Tests', | 
| 161         'path': 'tracing/bin/run_py_tests', | 152         'path': 'tracing/bin/run_py_tests', | 
| 162         'additional_args': ['--no-install-hooks'], | 153         'additional_args': ['--no-install-hooks'], | 
| 163         'disabled': ['android'], | 154         'disabled': ['android'], | 
| 164     }, | 155     }, | 
| 165     { | 156     { | 
| 166         'name': 'Vinn Tests', | 157         'name': 'Vinn Tests', | 
| 167         'path': 'third_party/vinn/bin/run_tests', | 158         'path': 'third_party/vinn/bin/run_tests', | 
| 168         'disabled': ['android'], | 159         'disabled': ['android'], | 
| 169     }, | 160     }, | 
|  | 161     { | 
|  | 162         'name': 'NetLog Viewer Dev Server Tests', | 
|  | 163         'path': 'netlog_viewer/bin/run_dev_server_tests', | 
|  | 164         'additional_args': [ | 
|  | 165             '--no-install-hooks', | 
|  | 166             '--no-use-local-chrome', | 
|  | 167         ], | 
|  | 168         'disabled': ['android', 'win', 'mac', 'linux'], | 
|  | 169     }, | 
| 170 ] | 170 ] | 
| 171 | 171 | 
| 172 | 172 | 
| 173 def main(args=None): | 173 def main(args=None): | 
| 174   """Send list of test to run to recipes generator_script. | 174   """Send list of test to run to recipes generator_script. | 
| 175 | 175 | 
| 176   See documentation at: | 176   See documentation at: | 
| 177   github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py | 177   github.com/luci/recipes-py/blob/master/recipe_modules/generator_script/api.py | 
| 178   """ | 178   """ | 
| 179   parser = argparse.ArgumentParser(description='Run catapult tests.') | 179   parser = argparse.ArgumentParser(description='Run catapult tests.') | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 237       step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' | 237       step['env']['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' | 
| 238     if test.get('outputs_presentation_json'): | 238     if test.get('outputs_presentation_json'): | 
| 239       step['outputs_presentation_json'] = True | 239       step['outputs_presentation_json'] = True | 
| 240     steps.append(step) | 240     steps.append(step) | 
| 241   with open(args.output_json, 'w') as outfile: | 241   with open(args.output_json, 'w') as outfile: | 
| 242     json.dump(steps, outfile) | 242     json.dump(steps, outfile) | 
| 243 | 243 | 
| 244 | 244 | 
| 245 if __name__ == '__main__': | 245 if __name__ == '__main__': | 
| 246   main(sys.argv[1:]) | 246   main(sys.argv[1:]) | 
| OLD | NEW | 
|---|