Rust: ignore target in qltest

The target file created by `cargo check` was causing problems in
language tests.

We might want to also ignore `target` by default in the production
indexing, but I'll leave that for further discussion.
This commit is contained in:
Paolo Tranquilli
2025-05-20 16:30:05 +02:00
parent c68579bd0d
commit 799c39bc9b

View File

@@ -54,6 +54,7 @@ path = "main.rs"
fn set_sources(config: &mut Config) -> anyhow::Result<()> {
let path_iterator = glob("**/*.rs").context("globbing test sources")?;
config.inputs = path_iterator
.filter(|f| f.is_err() || !f.as_ref().unwrap().starts_with("target"))
.collect::<Result<Vec<_>, _>>()
.context("fetching test sources")?;
Ok(())