Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from mopy.mojo_python_tests_runner import MojoPythonTestRunner | 9 from mopy.mojo_python_tests_runner import MojoPythonTestRunner |
| 10 | 10 |
| 11 | 11 |
| 12 def main(): | 12 def main(): |
| 13 test_dir_list = [ | 13 test_dir_list = [ |
| 14 # Tests of pylib bindings. | 14 # Tests of pylib bindings. |
| 15 os.path.join('mojo', 'public', 'tools', 'bindings', 'pylib'), | 15 os.path.join('mojo', 'public', 'tools', 'bindings', 'pylib'), |
| 16 # Tests of "mopy" python tools code. | 16 # Tests of "mopy" python tools code. |
| 17 os.path.join('mojo', 'tools', 'mopy'), | 17 os.path.join('mojo', 'tools', 'mopy'), |
| 18 # Tests of python code in devtools. | 18 # Tests of python code in devtools library. |
| 19 os.path.join('mojo', 'devtools', 'common', 'devtoolslib') | 19 os.path.join('mojo', 'devtools', 'common', 'devtoolslib'), |
| 20 # Tests of the android stack parser (in devtools). | |
|
ppi
2015/08/21 14:53:07
nit: no need to state the obvious, I'd drop this c
etiennej
2015/08/21 15:07:18
Done.
| |
| 21 os.path.join('mojo', 'devtools', 'common', 'android_stack_parser') | |
| 20 ] | 22 ] |
| 21 | 23 |
| 22 for test_dir in test_dir_list: | 24 for test_dir in test_dir_list: |
| 23 runner = MojoPythonTestRunner(test_dir) | 25 runner = MojoPythonTestRunner(test_dir) |
| 24 exit_code = runner.run() | 26 exit_code = runner.run() |
| 25 if exit_code: | 27 if exit_code: |
| 26 return exit_code | 28 return exit_code |
| 27 | 29 |
| 28 | 30 |
| 29 if __name__ == '__main__': | 31 if __name__ == '__main__': |
| 30 sys.exit(main()) | 32 sys.exit(main()) |
| OLD | NEW |