Skip to content

Commit

Permalink
Ignore dylint_examples and alpine tests using cfg rather than o…
Browse files Browse the repository at this point in the history
…n command line
  • Loading branch information
smoelius committed Aug 4, 2024
1 parent ba74f5e commit 7d7efcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
for X in . driver utils/linting; do
pushd "$X"
TMP="$(mktemp)"
cargo llvm-cov --coverage-target-only --target x86_64-unknown-linux-gnu --workspace --exclude dylint_examples --exclude alpine --failure-mode all --lcov --output-path "$TMP"
cargo llvm-cov --coverage-target-only --target x86_64-unknown-linux-gnu --workspace --failure-mode all --lcov --output-path "$TMP"
# smoelius: Collapse crate disambiguators. See:
# - https://github.com/rust-lang/rust/blob/5ad7a646a5df1c7e37fc4529f0f1000091ac902d/compiler/rustc_symbol_mangling/src/typeid/typeid_itanium_cxx_abi.rs#L416-L417
# - https://github.com/rust-lang/rust/blob/5ad7a646a5df1c7e37fc4529f0f1000091ac902d/compiler/rustc_symbol_mangling/src/typeid/typeid_itanium_cxx_abi.rs#L58-L64
Expand Down
2 changes: 1 addition & 1 deletion examples/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(test)]
#[cfg(all(not(coverage), test))]
mod test {
use cargo_metadata::MetadataCommand;
use dylint_internal::{
Expand Down
2 changes: 1 addition & 1 deletion tests/alpine/tests/alpine.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(unix)]
#![cfg(all(not(coverage), unix))]

use std::{
io::{stderr, Write},
Expand Down

0 comments on commit 7d7efcc

Please sign in to comment.