diff --git a/framework/python/src/common/testreport.py b/framework/python/src/common/testreport.py index 503ef659d..8f2c998c5 100644 --- a/framework/python/src/common/testreport.py +++ b/framework/python/src/common/testreport.py @@ -138,9 +138,12 @@ def to_json(self): for test in self._results: details = test.details if isinstance(details, str): - details = list(filter(lambda s: s!='', details.split('\n'))) + details = ' '.join(list(filter(lambda s: s != '', details.split('\n')))) if isinstance(details, list): + details = [str(d) for d in details] details = ' '.join(details) + else: + details = str(details) test_dict = { 'name': test.name, 'description': test.description, diff --git a/resources/test_packs/pilot/report_templates/results.jinja b/resources/test_packs/pilot/report_templates/results.jinja index c76a4c826..fb995d7ed 100644 --- a/resources/test_packs/pilot/report_templates/results.jinja +++ b/resources/test_packs/pilot/report_templates/results.jinja @@ -76,7 +76,7 @@ {% else %}