File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -374,15 +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
377
+ # Copy coverage files from MPI rank directories to main build directory
378
+ if [ -d "gcov_data" ]; then
379
+ find gcov_data -name "*.gcda" -exec cp {} . \;
380
+ find gcov_data -name "*.gcno" -exec cp {} . \;
381
+ fi
384
382
385
383
gcovr -r ../ \
384
+ --gcov-object-directory . \
386
385
--exclude '.*3rdparty/.*' \
387
386
--exclude '/usr/.*' \
388
387
--exclude '.*tasks/.*/tests/.*' \
@@ -396,7 +395,7 @@ jobs:
396
395
--xml --output ../coverage.xml \
397
396
--html=../cov-report/index.html \
398
397
--html-details=../cov-report/ \
399
- $SEARCH_PATHS
398
+ .
400
399
- name : Upload coverage reports to Codecov
401
400
402
401
with :
You can’t perform that action at this time.
0 commit comments