File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,14 @@ jobs:
374
374
mkdir cov-report
375
375
cd build
376
376
# Collect coverage data from all MPI rank directories and regular build directory
377
+ # Find existing gcov_data directories
378
+ SEARCH_PATHS="."
379
+ for rank_dir in gcov_data/rank_*; do
380
+ if [ -d "$rank_dir" ]; then
381
+ SEARCH_PATHS="$SEARCH_PATHS $rank_dir"
382
+ fi
383
+ done
384
+
377
385
gcovr -r ../ \
378
386
--exclude '.*3rdparty/.*' \
379
387
--exclude '/usr/.*' \
@@ -388,7 +396,7 @@ jobs:
388
396
--xml --output ../coverage.xml \
389
397
--html=../cov-report/index.html \
390
398
--html-details=../cov-report/ \
391
- . gcov_data/rank_0 gcov_data/rank_1 gcov_data/rank_2 gcov_data/rank_3
399
+ $SEARCH_PATHS
392
400
- name : Upload coverage reports to Codecov
393
401
394
402
with :
You can’t perform that action at this time.
0 commit comments