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

Unified Diff: trunk/src/build/android/run_browser_tests.py

Issue 18732002: Revert 210035 "Creates a new test running script test_runner.py" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/build/android/run_browser_tests.py
===================================================================
--- trunk/src/build/android/run_browser_tests.py (revision 210250)
+++ trunk/src/build/android/run_browser_tests.py (working copy)
@@ -4,21 +4,26 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Runs content_browsertests."""
+"""Runs content browser tests."""
-import logging
-import os
+import optparse
import sys
-from pylib import cmd_helper
+from pylib.browsertests import dispatch
+from pylib.utils import run_tests_helper
+from pylib.utils import test_options_parser
+def main(argv):
+ option_parser = optparse.OptionParser()
+ test_options_parser.AddGTestOptions(option_parser)
+ options, args = option_parser.parse_args(argv)
+ if len(args) > 1:
+ option_parser.error('Unknown argument: %s' % args[1:])
+
+ run_tests_helper.SetLogLevel(options.verbose_count)
+ return dispatch.Dispatch(options)
+
+
if __name__ == '__main__':
- args = ['python',
- os.path.join(os.path.dirname(__file__), 'test_runner.py'),
- 'content_browsertests'] + sys.argv[1:]
- logging.warning('*' * 80)
- logging.warning('This script is deprecated and will be removed soon.')
- logging.warning('Use the following instead: %s', ' '.join(args))
- logging.warning('*' * 80)
- sys.exit(cmd_helper.RunCmd(args))
+ sys.exit(main(sys.argv))
« no previous file with comments | « trunk/src/build/android/pylib/utils/test_options_parser.py ('k') | trunk/src/build/android/run_instrumentation_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698