Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Oct 30, 2024
1 parent 6ff1288 commit 6055847
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tests/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export LLVM_PROFILE_FILE="cargo-test-%p-%m.profraw"
rustflags="-Cinstrument-coverage"

test_package_with_feature "primitives" "std" "$rustflags"
no_runtime_benchmarks=('court' 'market-commons' 'rikiddo')
no_runtime_benchmarks=('court' 'market-commons')

for package in zrml/*; do
if [[ " ${no_runtime_benchmarks[*]} " != *" ${package##*/} "* ]]; then
Expand All @@ -25,4 +25,4 @@ done

unset CARGO_INCREMENTAL LLVM_PROFILE_FILE

grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --llvm --ignore '../*' --ignore "/*" -o $RUNNER_TEMP/zeitgeist-test-coverage.lcov
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --llvm --ignore '../*' --ignore "/*" -o $RUNNER_TEMP/zeitgeist-test-coverage.lcov
1 change: 1 addition & 0 deletions zrml/hybrid-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"zrml-combinatorial-tokens/runtime-benchmarks",
"zrml-prediction-markets/runtime-benchmarks",
]
std = [
Expand Down
1 change: 1 addition & 0 deletions zrml/neo-swaps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"zrml-combinatorial-tokens/runtime-benchmarks",
]
std = [
"frame-benchmarking?/std",
Expand Down

0 comments on commit 6055847

Please sign in to comment.