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

Side by Side Diff: client/bin/autotest

Issue 6539001: Merge remote branch 'cros/upstream' into master. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cli/job_unittest.py ('k') | client/bin/base_utils.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/python -u 1 #!/usr/bin/python -u
2 # 2 #
3 # autotest <control file> - run the autotest control file specified. 3 # autotest <control file> - run the autotest control file specified.
4 # 4 #
5 import os, sys 5 import os, sys
6 import common 6 import common
7 from optparse import OptionParser 7 from optparse import OptionParser
8 from autotest_lib.client.bin import job 8 from autotest_lib.client.bin import job
9 from autotest_lib.client.common_lib import global_config 9 from autotest_lib.client.common_lib import global_config
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 parser.add_option("-c", "--continue", dest="cont", action="store_true", 29 parser.add_option("-c", "--continue", dest="cont", action="store_true",
30 default=False, help="continue previously started job") 30 default=False, help="continue previously started job")
31 31
32 parser.add_option("-t", "--tag", dest="tag", type="string", default="default", 32 parser.add_option("-t", "--tag", dest="tag", type="string", default="default",
33 help="set the job tag") 33 help="set the job tag")
34 34
35 parser.add_option("-H", "--harness", dest="harness", type="string", default='', 35 parser.add_option("-H", "--harness", dest="harness", type="string", default='',
36 help="set the harness type") 36 help="set the harness type")
37 37
38 parser.add_option("-P", "--harness_args", dest="harness_args", type="string", de fault='',
39 help="arguments delivered to harness")
40
38 parser.add_option("-U", "--user", dest="user", type="string", 41 parser.add_option("-U", "--user", dest="user", type="string",
39 default='', help="set the job username") 42 default='', help="set the job username")
40 43
41 parser.add_option("-l", "--external_logging", dest="log", action="store_true", 44 parser.add_option("-l", "--external_logging", dest="log", action="store_true",
42 default=False, help="enable external logging") 45 default=False, help="enable external logging")
43 46
44 parser.add_option('--verbose', dest='verbose', action='store_true', 47 parser.add_option('--verbose', dest='verbose', action='store_true',
45 help='Include DEBUG messages in console output') 48 help='Include DEBUG messages in console output')
46 49
47 parser.add_option('--quiet', dest='verbose', action='store_false', 50 parser.add_option('--quiet', dest='verbose', action='store_false',
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 from autotest_lib.client.bin import setup_job 83 from autotest_lib.client.bin import setup_job
81 exit_code = 0 84 exit_code = 0
82 try: 85 try:
83 setup_job.setup_tests(options) 86 setup_job.setup_tests(options)
84 except: 87 except:
85 exit_code = 1 88 exit_code = 1
86 sys.exit(exit_code) 89 sys.exit(exit_code)
87 90
88 # JOB: run the specified job control file. 91 # JOB: run the specified job control file.
89 job.runjob(os.path.realpath(args[0]), drop_caches, options) 92 job.runjob(os.path.realpath(args[0]), drop_caches, options)
OLDNEW
« no previous file with comments | « cli/job_unittest.py ('k') | client/bin/base_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698