Skip to content

Commit

Permalink
Merge pull request avocado-framework#5827 from clebergnu/testlogs_plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Dec 8, 2023
2 parents b1c0a8e + e70856f commit 30be972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avocado/plugins/testlogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from avocado.core.output import LOG_JOB, LOG_UI
from avocado.core.plugin_interfaces import Init, JobPost, JobPre, ResultEvents
from avocado.core.settings import settings
from avocado.core.teststatus import STATUSES
from avocado.core.teststatus import STATUSES, STATUSES_NOT_OK


class TestLogsUIInit(Init):
Expand Down Expand Up @@ -48,7 +48,7 @@ def initialize(self):
section="job.output.testlogs",
key="summary_statuses",
key_type=list,
default=["FAIL", "ERROR"],
default=STATUSES_NOT_OK,
help_msg=help_msg,
)

Expand Down Expand Up @@ -79,7 +79,7 @@ def post(self, job):
summary_tests = []
for test in results["tests"]:
if test["status"] in summary:
line = f"{test['name']}: {test['status']}"
line = f"{test['id']}: {test['status']}"
summary_tests.append(line)
if not statuses or test["status"] not in statuses:
continue
Expand Down

0 comments on commit 30be972

Please sign in to comment.