Correct name of script

This commit is contained in:
Michael Kaye 2022-02-24 11:40:04 +00:00
parent fbf29f6f1e
commit 4d86f5f2fd
2 changed files with 8 additions and 11 deletions

View File

@ -93,7 +93,7 @@ jobs:
- name: Read Results [org.matrix.android.sdk.session] - name: Read Results [org.matrix.android.sdk.session]
if: always() if: always()
id: get-comment-body-session id: get-comment-body-session
run: python3 tools/ci/render_xml_output.py session ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml run: python3 ./tools/ci/render_test_output.py session ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.account] API[${{ matrix.api-level }}] - name: Run integration tests for Matrix SDK [org.matrix.android.sdk.account] API[${{ matrix.api-level }}]
if: always() if: always()
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
@ -108,7 +108,7 @@ jobs:
- name: Read Results [org.matrix.android.sdk.account] - name: Read Results [org.matrix.android.sdk.account]
if: always() if: always()
id: get-comment-body-account id: get-comment-body-account
run: python3 tools/ci/render_xml_output.py account ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml run: python3 ./tools/ci/render_test_output.py account ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
# package: org.matrix.android.sdk.internal # package: org.matrix.android.sdk.internal
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.internal] API[${{ matrix.api-level }}] - name: Run integration tests for Matrix SDK [org.matrix.android.sdk.internal] API[${{ matrix.api-level }}]
if: always() if: always()
@ -124,7 +124,7 @@ jobs:
- name: Read Results [org.matrix.android.sdk.internal] - name: Read Results [org.matrix.android.sdk.internal]
if: always() if: always()
id: get-comment-body-internal id: get-comment-body-internal
run: python3 tools/ci/render_xml_output.py internal ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml run: python3 ./tools/ci/render_test_output.py internal ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
# package: org.matrix.android.sdk.ordering # package: org.matrix.android.sdk.ordering
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.ordering] API[${{ matrix.api-level }}] - name: Run integration tests for Matrix SDK [org.matrix.android.sdk.ordering] API[${{ matrix.api-level }}]
if: always() if: always()
@ -140,9 +140,7 @@ jobs:
- name: Read Results [org.matrix.android.sdk.ordering] - name: Read Results [org.matrix.android.sdk.ordering]
if: always() if: always()
id: get-comment-body-ordering id: get-comment-body-ordering
run: | run: python3 ./tools/ci/render_test_output.py ordering ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
body="$(cat ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml | grep "<testsuite" | sed "s@.*tests=\(.*\)time=.*@\1@")"
echo "::set-output name=ordering::passed=$body"
# package: class PermalinkParserTest # package: class PermalinkParserTest
- name: Run integration tests for Matrix SDK class [org.matrix.android.sdk.PermalinkParserTest] API[${{ matrix.api-level }}] - name: Run integration tests for Matrix SDK class [org.matrix.android.sdk.PermalinkParserTest] API[${{ matrix.api-level }}]
if: always() if: always()
@ -158,9 +156,8 @@ jobs:
- name: Read Results [org.matrix.android.sdk.PermalinkParserTest] - name: Read Results [org.matrix.android.sdk.PermalinkParserTest]
if: always() if: always()
id: get-comment-body-permalink id: get-comment-body-permalink
run: | run: python3 ./tools/ci/render_test_output.py permalink ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
body="$(cat ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml | grep "<testsuite" | sed "s@.*tests=\(.*\)time=.*@\1@")" # package: class PermalinkParserTest
echo "::set-output name=permalink::passed=$body"
- name: Find Comment - name: Find Comment
if: always() && github.event_name == 'pull_request' if: always() && github.event_name == 'pull_request'
uses: peter-evans/find-comment@v1 uses: peter-evans/find-comment@v1

View File

@ -7,8 +7,8 @@
# Potentially rewrite as an independent action, use handlebars to template result # Potentially rewrite as an independent action, use handlebars to template result
import sys import sys
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
suitename = sys.argv[1]
xmlfiles= sys.argv[1:] xmlfiles = sys.argv[2:]
for xmlfile in xmlfiles: for xmlfile in xmlfiles:
tree = ET.parse(xmlfile) tree = ET.parse(xmlfile)