OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Runs content browser tests.""" | 7 """Runs content browser tests.""" |
8 | 8 |
9 import optparse | 9 import logging |
10 import os | |
11 import subprocess | |
10 import sys | 12 import sys |
11 | 13 |
12 from pylib.browsertests import dispatch | |
13 from pylib.utils import run_tests_helper | |
14 from pylib.utils import test_options_parser | |
15 | |
16 def main(argv): | |
17 option_parser = optparse.OptionParser() | |
18 test_options_parser.AddGTestOptions(option_parser) | |
19 options, args = option_parser.parse_args(argv) | |
20 | |
21 if len(args) > 1: | |
22 option_parser.error('Unknown argument: %s' % args[1:]) | |
23 | |
24 run_tests_helper.SetLogLevel(options.verbose_count) | |
25 return dispatch.Dispatch(options) | |
26 | |
27 | |
28 if __name__ == '__main__': | 14 if __name__ == '__main__': |
29 sys.exit(main(sys.argv)) | 15 args = ["python", |
16 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.
| |
17 "--contentbrowsertests"] + sys.argv[1:] | |
18 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.
| |
19 "The preferred command is: %s" % (' '.join(args))) | |
20 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.
| |
OLD | NEW |