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

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

Issue 1128153002: Rename the devtools library: pylib -> devtoolslib. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address offline comments/ devtools_lib -> devtoolslib. Created 5 years, 7 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 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
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())
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