Chromium Code Reviews| Index: build/android/run_browser_tests.py |
| diff --git a/build/android/run_browser_tests.py b/build/android/run_browser_tests.py |
| index b19ff35f846bec270e71ecf11a58cc20c959b1c0..40ed437da2d8c5b756cfb13f38a12da74585701c 100755 |
| --- a/build/android/run_browser_tests.py |
| +++ b/build/android/run_browser_tests.py |
| @@ -6,24 +6,15 @@ |
| """Runs content browser tests.""" |
| -import optparse |
| +import logging |
| +import os |
| +import subprocess |
| import sys |
| -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__': |
| - sys.exit(main(sys.argv)) |
| + args = ["python", |
| + os.path.expandvars("$CHROME_SRC/build/android/run_all_tests.py"), |
|
frankf
2013/06/12 04:31:46
Use __file__ to get the path to the script.
gkanwar
2013/06/13 00:12:34
Done.
|
| + "--contentbrowsertests"] + sys.argv[1:] |
| + logging.warning("This script is deprecated. " |
|
frankf
2013/06/12 04:31:46
Make this more prominant by adding :
'*' * 80
bla
gkanwar
2013/06/13 00:12:34
Done.
|
| + "The preferred command is: %s" % (' '.join(args))) |
| + sys.exit(subprocess.call(args)) |
|
craigdh
2013/06/12 18:37:03
Use pylib/cmd_helper.py instead of subprocess dire
gkanwar
2013/06/13 00:12:34
Done.
|