| 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_internal.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', 'public', 'tools', 'mopy') |
| 18 ] | 18 ] |
| 19 | 19 |
| 20 for test_dir in test_dir_list: | 20 for test_dir in test_dir_list: |
| 21 runner = MojoPythonTestRunner(test_dir) | 21 runner = MojoPythonTestRunner(test_dir) |
| 22 exit_code = runner.run() | 22 exit_code = runner.run() |
| 23 if exit_code: | 23 if exit_code: |
| 24 return exit_code | 24 return exit_code |
| 25 | 25 |
| 26 | 26 |
| 27 if __name__ == '__main__': | 27 if __name__ == '__main__': |
| 28 sys.exit(main()) | 28 sys.exit(main()) |
| OLD | NEW |