diff --git a/.ci/test.sh b/.ci/test.sh index 7b5b49047a..25ecf8c269 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -78,5 +78,5 @@ echo "$0: tests finished" echo "$0: storing coverage data" lcov --capture --directory ${WORKSPACE} --output-file /tmp/coverage.original -lcov --remove /tmp/coverage.original "*/test/" --output-file /tmp/coverage.removed -lcov --extract /tmp/coverage.removed "*/${WORKSPACE}/*" --output-file $ARTIFACT_FOLDER/$REPOSITORY_NAME.info +[ -e /tmp/coverage.original ] && lcov --remove /tmp/coverage.original "*/test/" --output-file /tmp/coverage.removed +[ -e /tmp/coverage.removed ] && lcov --extract /tmp/coverage.removed "*/${WORKSPACE}/*" --output-file $ARTIFACT_FOLDER/$REPOSITORY_NAME.info