Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Side by Side Diff: mojo/tools/apptest_runner.py

Issue 1100903003: Move android.py to devtools. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/tools/android_mojo_shell.py ('k') | mojo/tools/devtools.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « mojo/tools/android_mojo_shell.py ('k') | mojo/tools/devtools.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698