ci: bsim tests: Fix for missing result xml files

Do not fail during results merge if
twister or the bsim workflows did not run
(or produce an xml).
Depending on what has changed in a PR
and therefore what tests are run this can happen.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-06-14 09:14:14 +02:00 committed by Anas Nashif
parent bb66d1188c
commit c2950bec73

View file

@ -163,7 +163,7 @@ jobs:
- name: Merge Test Results - name: Merge Test Results
run: | run: |
pip3 install junitparser junit2html pip3 install junitparser junit2html
junitparser merge ./bsim_*/*bsim_results.*.xml ./twister-out/twister.xml junit.xml junitparser merge --glob "./bsim_*/*bsim_results.*.xml" "./twister-out/twister.xml" junit.xml
junit2html junit.xml junit.html junit2html junit.xml junit.html
- name: Upload Unit Test Results in HTML - name: Upload Unit Test Results in HTML