2013-10-09 18:19:10 +00:00
|
|
|
import argparse
|
|
|
|
|
2013-10-11 17:09:40 +00:00
|
|
|
import teuthology.misc
|
2013-10-09 18:19:10 +00:00
|
|
|
import teuthology.run
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
teuthology.run.main(parse_args())
|
|
|
|
|
|
|
|
|
|
|
|
def parse_args():
|
|
|
|
parser = argparse.ArgumentParser(description='Run ceph integration tests')
|
|
|
|
parser.add_argument(
|
|
|
|
'-v', '--verbose',
|
|
|
|
action='store_true', default=None,
|
|
|
|
help='be more verbose',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'config',
|
|
|
|
metavar='CONFFILE',
|
|
|
|
nargs='+',
|
2013-10-11 17:09:40 +00:00
|
|
|
type=teuthology.misc.config_file,
|
|
|
|
action=teuthology.misc.MergeConfig,
|
2013-10-09 18:19:10 +00:00
|
|
|
default={},
|
|
|
|
help='config file to read',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'-a', '--archive',
|
|
|
|
metavar='DIR',
|
|
|
|
help='path to archive results in',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--description',
|
|
|
|
help='job description',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--owner',
|
|
|
|
help='job owner',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--lock',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help='lock machines for the duration of the run',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--machine-type',
|
|
|
|
default=None,
|
|
|
|
help='Type of machine to lock/run tests on.',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--os-type',
|
|
|
|
default='ubuntu',
|
|
|
|
help='Distro/OS of machine to run test on.',
|
|
|
|
)
|
2013-10-26 00:48:50 +00:00
|
|
|
parser.add_argument(
|
|
|
|
'--os-version',
|
|
|
|
default=None,
|
|
|
|
help='Distro/OS version of machine to run test on.',
|
|
|
|
)
|
2013-10-09 18:19:10 +00:00
|
|
|
parser.add_argument(
|
|
|
|
'--block',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help='block until locking machines succeeds (use with --lock)',
|
|
|
|
)
|
|
|
|
parser.add_argument(
|
|
|
|
'--name',
|
|
|
|
metavar='NAME',
|
|
|
|
help='name for this teuthology run',
|
|
|
|
)
|
|
|
|
|
|
|
|
return parser.parse_args()
|