From 1f5138aac925cbe81f7b3c09b8c4b199930a8f79 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 8 Feb 2022 20:08:46 +1000 Subject: [PATCH] Fix code coverage script --- ci/upload-coverage | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/upload-coverage b/ci/upload-coverage index f24edc6..57ebf9f 100755 --- a/ci/upload-coverage +++ b/ci/upload-coverage @@ -16,9 +16,10 @@ make install DESTDIR=../../kcov-build cd ../.. rm -rf "kcov-$KCOV_VERSION" -for file in target/debug/"$CRATE"-*[^\.d]; do - mkdir -p "target/cov/$(basename "$file")"; - ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename "$file")" "$file"; +for file in target/debug/deps/"$CRATE"-*; do + [ -x "${file}" ] || continue + mkdir -p "target/cov/$(basename "$file")" + ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename "$file")" "$file" done bash <(curl -s https://codecov.io/bash)