Skip to content

Commit

Permalink
update coverage flag to be set as stable option
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfraem committed Aug 14, 2024
1 parent df04ad7 commit f10f8e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mkdir coverage

# Run tests with profiling instrumentation
echo "Running instrumented unit tests..."
RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="crypto-rs-%m.profraw" cargo +nightly test --tests --all --all-features
RUSTFLAGS="-Cinstrument-coverage" LLVM_PROFILE_FILE="crypto-rs-%m.profraw" cargo +nightly test --tests --all --all-features

# Merge all .profraw files into "crypto-rs.profdata"
echo "Merging coverage data..."
Expand All @@ -19,7 +19,7 @@ BINARIES=""

for file in \
$( \
RUSTFLAGS="-Zinstrument-coverage" \
RUSTFLAGS="-Cinstrument-coverage" \
cargo +nightly test --tests --all --all-features --no-run --message-format=json \
| jq -r "select(.profile.test == true) | .filenames[]" \
| grep -v dSYM - \
Expand Down

0 comments on commit f10f8e8

Please sign in to comment.