From d148462e5bca005624adc98cc1ead9bee0a098d7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 5 Nov 2015 13:04:10 -0700 Subject: [PATCH] More consistent spacing between sections Signed-off-by: Zack Cerza --- teuthology/results.py | 4 +++- teuthology/test/test_results.py | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/teuthology/results.py b/teuthology/results.py index b5e210cd7b..422aaab380 100644 --- a/teuthology/results.py +++ b/teuthology/results.py @@ -223,7 +223,7 @@ def format_job(run_name, job): reason = \ '\n'.join((' ') + line for line in reason.splitlines()) reason_lines = email_templates['fail_reason_templ'].format( - reason=reason) + reason=reason).rstrip() else: reason_lines = '' @@ -261,6 +261,7 @@ email_templates = { {fail_sect}{dead_sect}{running_sect}{waiting_sect}{queued_sect}{pass_sect} """), 'sect_templ': dedent("""\ + {title} ================================================================= {jobs} @@ -277,6 +278,7 @@ email_templates = { 'fail_reason_templ': "\n\n{reason}\n", 'running_templ': dedent("""\ [{job_id}] {desc}{info_line} + """), 'pass_templ': dedent("""\ [{job_id}] {desc} diff --git a/teuthology/test/test_results.py b/teuthology/test/test_results.py index 6dab00afb4..78022d7f94 100644 --- a/teuthology/test/test_results.py +++ b/teuthology/test/test_results.py @@ -84,6 +84,7 @@ class TestResultsEmail(object): queued: 1 passed: 1 + Fail ================================================================= [88979] description for job with name test_name @@ -113,16 +114,22 @@ class TestResultsEmail(object): [30481] description for job with name test_name info: http://example.com/test_name/30481/ + + Waiting ================================================================= [62965] description for job with name test_name info: http://example.com/test_name/62965/ + + Queued ================================================================= [79063] description for job with name test_name info: http://example.com/test_name/79063/ + + Pass ================================================================= [68369] description for job with name test_name -- 2.39.5