2014-06-09 18:31:11 +00:00
|
|
|
import docopt
|
2013-10-08 21:59:17 +00:00
|
|
|
|
2013-10-11 17:09:40 +00:00
|
|
|
import teuthology.misc
|
2013-10-09 20:13:01 +00:00
|
|
|
import teuthology.schedule
|
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
doc = """
|
|
|
|
usage: teuthology-schedule -h
|
2014-06-16 16:19:54 +00:00
|
|
|
teuthology-schedule [options] [--] [<conf_file> ...]
|
2013-10-09 20:13:01 +00:00
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
Schedule ceph integration tests
|
|
|
|
|
|
|
|
positional arguments:
|
|
|
|
<conf_file> Config file to read
|
2013-10-08 21:59:17 +00:00
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
optional arguments:
|
|
|
|
-h, --help Show this help message and exit
|
|
|
|
-v, --verbose Be more verbose
|
|
|
|
-n <name>, --name <name> Name of suite run the job is part of
|
|
|
|
-d <desc>, --description <desc> Job description
|
|
|
|
-o <owner>, --owner <owner> Job owner
|
|
|
|
-w <worker>, --worker <worker> Which worker to use (type of machine)
|
|
|
|
[default: plana]
|
|
|
|
-p <priority>, --priority <priority> Job priority (lower is sooner)
|
|
|
|
[default: 1000]
|
|
|
|
-N <num>, --num <num> Number of times to run/queue the job
|
|
|
|
[default: 1]
|
2013-10-08 21:59:17 +00:00
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
--last-in-suite Mark the last job in a suite so suite
|
|
|
|
post-processing can be run
|
|
|
|
[default: False]
|
|
|
|
--email <email> Where to send the results of a suite.
|
|
|
|
Only applies to the last job in a suite.
|
|
|
|
--timeout <timeout> How many seconds to wait for jobs to
|
|
|
|
finish before emailing results. Only
|
|
|
|
applies to the last job in a suite.
|
2014-07-11 20:18:03 +00:00
|
|
|
--dry-run Instead of scheduling, just output the
|
|
|
|
job config.
|
2013-10-08 21:59:17 +00:00
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
"""
|
2013-10-08 21:59:17 +00:00
|
|
|
|
|
|
|
|
2014-06-09 18:31:11 +00:00
|
|
|
def main():
|
|
|
|
args = docopt.docopt(doc)
|
|
|
|
teuthology.schedule.main(args)
|