'--name',
job_config['name'],
]
- if job_config.get('email_on_success', False):
- args.append('--email-on-success')
subprocess.Popen(args=args)
else:
log.debug('Creating archive dir...')
'--email',
help='where to send the results of a suite (only applies to the last job in a suite)',
)
- parser.add_argument(
- '--email-on-success',
- action='store_true',
- default=False,
- help='email even if all tests pass',
- )
parser.add_argument(
'--timeout',
help='how many seconds to wait for jobs to finish before emailing results (only applies to the last job in a suite',
if not ctx.last_in_suite:
assert not ctx.email, '--email is only applicable to the last job in a suite'
assert not ctx.timeout, '--timeout is only applicable to the last job in a suite'
- assert not ctx.email_on_success, '--email-on-success is only applicable to the last job in a suite'
from teuthology.misc import read_config, get_user
if ctx.owner is None:
name=ctx.name,
last_in_suite=ctx.last_in_suite,
email=ctx.email,
- email_on_success=ctx.email_on_success,
description=ctx.description,
owner=ctx.owner,
verbose=ctx.verbose,
'--email',
help='address to email test failures to',
)
- parser.add_argument(
- '--email-on-success',
- action='store_true',
- default=False,
- help='email even if all tests pass',
- )
parser.add_argument(
'--timeout',
help='how many seconds to wait for jobs to finish before emailing results',
'--email',
help='address to email test failures to',
)
- parser.add_argument(
- '--email-on-success',
- action='store_true',
- default=False,
- help='email even if all tests pass',
- )
parser.add_argument(
'--timeout',
help='how many seconds to wait for all tests to finish (default no wait)',
reason=summary['failure_reason'],
))
- if not args.email or not (failures or unfinished or args.email_on_success):
+ if not args.email:
return
if failures or unfinished: