Scheduler arguments:
--owner <owner> Job owner
-e <email>, --email <email>
- When tests finish or time out, send an email here
+ When tests finish or time out, send an email
+ here. May also be specified in ~/.teuthology.yaml
+ as 'results_email'
-N <num>, --num <num> Number of times to run/queue the job
[default: 1]
-l <jobs>, --limit <jobs> Queue at most this many jobs
owner = args['--owner']
email = args['--email']
if email:
- config.email_specified = True
config.results_email = email
timeout = args['--timeout']
machine_type=machine_type,
suite_repo_path=suite_repo_path,
base_yaml_paths=base_yaml_paths,
- email=email,
priority=priority,
limit=limit,
num=num,
def prepare_and_schedule(owner, name, suite, machine_type, suite_repo_path,
- base_yaml_paths, email, priority, limit, num, timeout,
+ base_yaml_paths, priority, limit, num, timeout,
dry_run, verbose):
"""
Puts together some "base arguments" with which to execute
teuthology-schedule for each job, then passes them and other parameters to
schedule_suite(). Finally, schedules a "last-in-suite" job that sends an
- email to the specified address (if one is specified).
+ email to the specified address (if one is configured).
"""
+ email = config.results_email
arch = get_arch(machine_type)
base_args = [
if email and num_jobs:
arg = copy.deepcopy(base_args)
arg.append('--last-in-suite')
- if email:
- arg.extend(['--email', email])
+ arg.extend(['--email', email])
if timeout:
arg.extend(['--timeout', timeout])
if dry_run: