If duration is missing from summary.yaml, use 0

This commit is contained in:
Zack Cerza 2013-09-18 14:08:23 -05:00
parent db92bb9140
commit d83912e0bf

View File

@ -533,7 +533,7 @@ def build_email_body(name, archive_dir, timeout):
passed[job] = email_templates['pass_templ'].format(
job_id=job,
desc=summary.get('description'),
time=int(summary.get('duration')),
time=int(summary.get('duration'), 0),
)
else:
log = misc.get_http_log_path(archive_dir, job)
@ -558,7 +558,7 @@ def build_email_body(name, archive_dir, timeout):
failed[job] = email_templates['fail_templ'].format(
job_id=job,
desc=summary.get('description'),
time=int(summary.get('duration')),
time=int(summary.get('duration', 0)),
reason=reason,
log_line=log_line,
sentry_line=sentry_line,