Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
--timeout <timeout> How many seconds to wait for jobs to
finish before emailing results. Only
applies to the last job in a suite.
+ --dry-run Instead of scheduling, just output the
+ job config.
"""
+import pprint
import yaml
import teuthology.beanstalk
raise ValueError(
'--timeout is only applicable to the last job in a suite')
job_config = build_config(args)
- schedule_job(job_config, args['--num'])
+ if args['--dry-run']:
+ pprint.pprint(job_config)
+ else:
+ schedule_job(job_config, args['--num'])
def build_config(args):