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:
374374 mkdir cov-report
375375 cd build
376376 # 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+
377385 gcovr -r ../ \
378386 --exclude '.*3rdparty/.*' \
379387 --exclude '/usr/.*' \
@@ -388,7 +396,7 @@ jobs:
388396 --xml --output ../coverage.xml \
389397 --html=../cov-report/index.html \
390398 --html-details=../cov-report/ \
391- . gcov_data/rank_0 gcov_data/rank_1 gcov_data/rank_2 gcov_data/rank_3
399+ $SEARCH_PATHS
392400 - name : Upload coverage reports to Codecov
393401394402 with :
You can’t perform that action at this time.
0 commit comments