File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -375,9 +375,10 @@ jobs:
375
375
cd build
376
376
# Collect coverage data from all MPI rank directories and regular build directory
377
377
# Copy coverage files from MPI rank directories to main build directory
378
+ # Only copy files that don't already exist to avoid conflicts
378
379
if [ -d "gcov_data" ]; then
379
- find gcov_data -name "*.gcda" -exec cp {} . \;
380
- find gcov_data -name "*.gcno" -exec cp {} . \;
380
+ find gcov_data -name "*.gcda" -exec bash -c ' cp "$1" "$(basename "$1")" 2>/dev/null || true' _ {} \;
381
+ find gcov_data -name "*.gcno" -exec bash -c ' cp "$1" "$(basename "$1")" 2>/dev/null || true' _ {} \;
381
382
fi
382
383
383
384
gcovr -r ../ \
@@ -392,6 +393,7 @@ jobs:
392
393
--exclude '.*modules/util/include/func_test_util.hpp' \
393
394
--exclude '.*modules/util/src/func_test_util.cpp' \
394
395
--gcov-ignore-parse-errors \
396
+ --gcov-ignore-errors \
395
397
--xml --output ../coverage.xml \
396
398
--html=../cov-report/index.html \
397
399
--html-details=../cov-report/ \
You can’t perform that action at this time.
0 commit comments