| 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 |
| 13 devtools.add_pylib_to_path() |
| 14 from pylib.android import AndroidShell |
| 15 |
| 12 from mopy import dart_apptest | 16 from mopy import dart_apptest |
| 13 from mopy import gtest | 17 from mopy import gtest |
| 14 from mopy.android import AndroidShell | |
| 15 from mopy.config import Config | 18 from mopy.config import Config |
| 16 from mopy.gn import ConfigForGNArgs, ParseGNConfig | 19 from mopy.gn import ConfigForGNArgs, ParseGNConfig |
| 17 from mopy.log import InitLogging | 20 from mopy.log import InitLogging |
| 18 from mopy.paths import Paths | 21 from mopy.paths import Paths |
| 19 | 22 |
| 20 | 23 |
| 21 _logger = logging.getLogger() | 24 _logger = logging.getLogger() |
| 22 | 25 |
| 23 | 26 |
| 24 def main(): | 27 def main(): |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 if apptest_result != "Succeeded": | 84 if apptest_result != "Succeeded": |
| 82 exit_code = 1 | 85 exit_code = 1 |
| 83 print apptest_result | 86 print apptest_result |
| 84 _logger.info("Completed: %s" % test_name) | 87 _logger.info("Completed: %s" % test_name) |
| 85 | 88 |
| 86 return exit_code | 89 return exit_code |
| 87 | 90 |
| 88 | 91 |
| 89 if __name__ == '__main__': | 92 if __name__ == '__main__': |
| 90 sys.exit(main()) | 93 sys.exit(main()) |
| OLD | NEW |