]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
More consistent spacing between sections 699/head
authorZack Cerza <zack@redhat.com>
Thu, 5 Nov 2015 20:04:10 +0000 (13:04 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 5 Nov 2015 20:04:10 +0000 (13:04 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/results.py
teuthology/test/test_results.py

index b5e210cd7bc32c475a684039725132f89c85c733..422aaab3803f881152f84267271ae7e931c1c384 100644 (file)
@@ -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}
index 6dab00afb46be4066d73950227daa361437ad65b..78022d7f945bf775553dd938b0dc8a602f50bae8 100644 (file)
@@ -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