| 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 """A test runner for gtest application tests.""" | 6 """A test runner for gtest application tests.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import logging | 9 import logging |
| 10 import sys | 10 import sys |
| 11 | 11 |
| 12 import devtools | 12 import devtools |
| 13 devtools.add_pylib_to_path() | 13 devtools.add_lib_to_path() |
| 14 from pylib.android_shell import AndroidShell | 14 from devtoolslib.android_shell import AndroidShell |
| 15 from pylib.linux_shell import LinuxShell | 15 from devtoolslib.linux_shell import LinuxShell |
| 16 from pylib.apptest_dart import run_dart_apptest | 16 from devtoolslib.apptest_dart import run_dart_apptest |
| 17 from pylib.apptest_gtest import run_gtest_apptest | 17 from devtoolslib.apptest_gtest import run_gtest_apptest |
| 18 | 18 |
| 19 from mopy import gtest | 19 from mopy import gtest |
| 20 from mopy.config import Config | 20 from mopy.config import Config |
| 21 from mopy.gn import ConfigForGNArgs, ParseGNConfig | 21 from mopy.gn import ConfigForGNArgs, ParseGNConfig |
| 22 from mopy.log import InitLogging | 22 from mopy.log import InitLogging |
| 23 from mopy.paths import Paths | 23 from mopy.paths import Paths |
| 24 | 24 |
| 25 | 25 |
| 26 _logger = logging.getLogger() | 26 _logger = logging.getLogger() |
| 27 | 27 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 if not apptest_result: | 85 if not apptest_result: |
| 86 exit_code = 1 | 86 exit_code = 1 |
| 87 print "Succeeded" if apptest_result else "Failed" | 87 print "Succeeded" if apptest_result else "Failed" |
| 88 _logger.info("Completed: %s" % test_name) | 88 _logger.info("Completed: %s" % test_name) |
| 89 | 89 |
| 90 return exit_code | 90 return exit_code |
| 91 | 91 |
| 92 | 92 |
| 93 if __name__ == '__main__': | 93 if __name__ == '__main__': |
| 94 sys.exit(main()) | 94 sys.exit(main()) |
| OLD | NEW |