Add a way to skip tests if they don't match the target

This commit is contained in:
Omar Abdulla
2025-07-22 09:07:01 +03:00
parent a0248b58f3
commit 5c957e5ac1
8 changed files with 63 additions and 30 deletions
+8
View File
@@ -584,6 +584,14 @@ impl Node for KitchensinkNode {
.stdout;
Ok(String::from_utf8_lossy(&output).into())
}
#[tracing::instrument(skip_all, fields(kitchensink_node_id = self.id))]
fn matches_target(&self, targets: Option<&[String]>) -> bool {
match targets {
None => true,
Some(targets) => targets.iter().any(|str| str.as_str() == "pvm"),
}
}
}
impl Drop for KitchensinkNode {