From b49e785e6f5eddecf809b8de3900daca26528025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Fri, 6 Jun 2025 23:58:46 +0200 Subject: [PATCH] Use :global-test-result: when converting trs file to JUnit XML There might be more than one :test-result: and they are collated into the :global-test-result: field. This only happens when system tests are run with `make check`. (cherry picked from commit d8e6609aaaa5fb752d4105a1b558f200a08aa4c1) --- bin/tests/convert-trs-to-junit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tests/convert-trs-to-junit.py b/bin/tests/convert-trs-to-junit.py index 6d7b4aaa1b..fdfd8cf3ce 100755 --- a/bin/tests/convert-trs-to-junit.py +++ b/bin/tests/convert-trs-to-junit.py @@ -28,14 +28,14 @@ def read_trs_result(filename): items = line.split() if len(items) < 2: raise ValueError("unsupported line in trs file", filename, line) - if items[0] != (":test-result:"): + if items[0] != (":global-test-result:"): continue if result is not None: - raise NotImplementedError("double :test-result:", filename) + raise NotImplementedError("double :global-test-result:", filename) result = items[1].upper() if result is None: - raise ValueError(":test-result: not found", filename) + raise ValueError(":global-test-result: not found", filename) return result