[PATCH 5/5] don't print empty lines to email when there are no highlights
Kamil Páral
kparal at redhat.com
Fri Sep 10 13:52:31 UTC 2010
---
lib/python/test.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/python/test.py b/lib/python/test.py
index d9a81fa..15d6d16 100644
--- a/lib/python/test.py
+++ b/lib/python/test.py
@@ -94,7 +94,8 @@ class AutoQATest(test.test, object):
# send email
if send_to:
mail_body = "Stored logs available at <%s>\n\n" % self.autotest_url
- mail_body += "%s\n" % self.highlights
+ if self.highlights:
+ mail_body += "%s\n" % self.highlights
mail_body += "-"*70 + "\n"
mail_body += self.outputs
utils.send_email(mail_to=send_to,
--
1.7.2.2
More information about the autoqa-devel
mailing list