We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e32905 commit 8647e29Copy full SHA for 8647e29
tests/compile-test.rs
@@ -64,12 +64,7 @@ fn base_config(test_dir: &str) -> compiletest::Config {
64
fn test_filter() -> Box<dyn Sync + Fn(&Path) -> bool> {
65
if let Ok(filters) = env::var("TESTNAME") {
66
let filters: Vec<_> = filters.split(',').map(ToString::to_string).collect();
67
- Box::new(move |path| {
68
- filters.is_empty()
69
- || filters
70
- .iter()
71
- .any(|f| path.file_stem().map_or(false, |stem| stem == f.as_str()))
72
- })
+ Box::new(move |path| filters.iter().any(|f| path.to_string_lossy().contains(f)))
73
} else {
74
Box::new(|_| true)
75
}
0 commit comments