mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:39:59 -04:00
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 d8e6609aaa)
This commit is contained in:
parent
277ab29506
commit
b49e785e6f
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue