From 9ddcaffebf2f46c1ad3c498c77733e65b1830385 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:36:43 +0000 Subject: [PATCH] Adjust script to handle XML files --- tools/ci/render_test_output.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/ci/render_test_output.py b/tools/ci/render_test_output.py index 8288bcc032..54b5ffbf86 100755 --- a/tools/ci/render_test_output.py +++ b/tools/ci/render_test_output.py @@ -15,9 +15,8 @@ for xmlfile in xmlfiles: root = tree.getroot() name = root.attrib['name'] - name = root.attrib['time'] + time = root.attrib['time'] tests = int(root.attrib['tests']) - passed = int(root.attrib['passed']) skipped = int(root.attrib['skipped']) errors = int(root.attrib['errors']) failures = int(root.attrib['failures']) @@ -37,7 +36,7 @@ for xmlfile in xmlfiles: else: print(f"::error file={testname}::{message} in {time}s") print(child.text) - body = f"passed={passed} failures={failures} errors={errors} skipped={skipped}" - print(f"::set-output name={suitename}::passed={body}") + body = f"passed={success} failures={failures} errors={errors} skipped={skipped}" + print(f"::set-output name={suitename}::={body}") print("::endgroup::")