Skip to content

Commit 1947a11

Browse files
fabiobaltierinashif
authored andcommitted
ci: twister: fix result merge when there's only 1 runner
The current test result merge command uses artifacts/*/*/twister.xml as an argument but that directory hierarchy only works if there's >1 runners. If twister decies to only schedule one, then the only file is going to be in artifacts/twister-out/twister.xml and the current command is going to fail with a file not found error. Using a ** glob for finding the files. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 9b7c4c8 commit 1947a11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/clang.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
160160
- name: Merge Test Results
161161
run: |
162-
junitparser merge artifacts/*/twister.xml junit.xml
162+
junitparser merge --glob artifacts/**/twister.xml junit.xml
163163
junit2html junit.xml junit-clang.html
164164
165165
- name: Upload Unit Test Results in HTML

.github/workflows/twister.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347

348348
- name: Merge Test Results
349349
run: |
350-
junitparser merge artifacts/*/*/twister.xml junit.xml
350+
junitparser merge --glob artifacts/**/twister.xml junit.xml
351351
junit2html junit.xml junit.html
352352
353353
- name: Upload Unit Test Results

0 commit comments

Comments
 (0)