Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Separate for easier debugging; also forward args
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 16, 2019
1 parent a82a494 commit 550918c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ reportName="lcov-${CI_COMMIT:0:9}"

if [[ -n $1 ]]; then
crate="--package $1"
shift
else
crate="--all --exclude solana-local-cluster"
fi
Expand All @@ -37,7 +38,9 @@ rm -rf target/cov/$reportName

source ci/rust-version.sh nightly
# shellcheck disable=SC2086 #
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib $crate 2> /dev/null
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib --no-run $crate "$@"
# shellcheck disable=SC2086 #
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib $crate "$@" 2> /dev/null

echo "--- grcov"

Expand Down

0 comments on commit 550918c

Please sign in to comment.