From adbbfa1ec1b71678349fce7135a10abf728b4bef Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 4 Apr 2019 17:07:58 -0300 Subject: [PATCH] validate:launcher: Remove noise about empty known issues in logs --- validate/launcher/baseclasses.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 0c3c4ee131..1e510eae8a 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -290,9 +290,12 @@ class Test(Loggable): f.write(info) def add_known_issue_information(self): - info = "\n\n**Already known issues**:\n\n``` python\n%s\n```\n\n" % ( - json.dumps(self.expected_issues) - ) + if self.expected_issues: + info = "\n\n**Already known issues**:\n\n``` python\n%s\n```\n\n" % ( + json.dumps(self.expected_issues) + ) + else: + info = "" info += "\n\n**You can mark the issues as 'known' by adding the " \ + " following lines to the list of known issues**\n" \