OLD | NEW |
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...) Loading... |
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...) Loading... |
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) |
OLD | NEW |