]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use :global-test-result: when converting trs file to JUnit XML
authorŠtěpán Balážik <stepan@isc.org>
Fri, 6 Jun 2025 21:58:46 +0000 (23:58 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Thu, 26 Jun 2025 15:05:20 +0000 (17:05 +0200)
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`.

bin/tests/convert-trs-to-junit.py

index 6d7b4aaa1b6fe1776cf58ecb627b07d9649742c3..fdfd8cf3ce0b90ee43e752399c616d924c6f4636 100755 (executable)
@@ -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