From 7f8e79d186c71c8ff98a51c27e52197bf6c0ba23 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 4 Nov 2024 18:01:51 +0100 Subject: [PATCH] clean up --- .github/workflows/cargo_llvm_cov.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cargo_llvm_cov.yml b/.github/workflows/cargo_llvm_cov.yml index ff6b6a0a380..39d48fb3b7e 100644 --- a/.github/workflows/cargo_llvm_cov.yml +++ b/.github/workflows/cargo_llvm_cov.yml @@ -68,13 +68,10 @@ jobs: set +e IOTA_SKIP_SIMTESTS=1 cargo llvm-cov --ignore-run-fail --no-report nextest -vv find target/llvm-cov-target -name '*.profraw' | while read file; do - # TEMP - echo "Checking $file" - "$LLVM_PROFDATA" show "$file" - # if ! "$LLVM_PROFDATA" show "$file" > /dev/null 2>&1; then - # echo "Removing corrupted file: $file" - # rm "$file" - # fi + if ! "$LLVM_PROFDATA" show "$file" > /dev/null 2>&1; then + echo "Removing corrupted file: $file" + rm "$file" + fi done cargo llvm-cov report --lcov --output-path target/llvm-cov/nextest.info if [ -f "target/llvm-cov/nextest.info" ]; then @@ -102,7 +99,6 @@ jobs: run: | apt install -yy lcov cd target/llvm-cov - #genhtml -o coverage_report --branch-coverage nextest.info simtest.info genhtml -o coverage_report nextest.info simtest.info tar -czvf coverage_report.tgz ./coverage_report