Rust: only accept options.yml in QL tests

This commit is contained in:
Paolo Tranquilli
2024-11-18 10:40:29 +01:00
parent 75375be7ac
commit 8137419d93
6 changed files with 1 additions and 7 deletions

View File

@@ -62,13 +62,7 @@ impl Config {
.ancestors()
// only travel up while we're within the test pack
.take_while_inclusive(|p| !p.join("qlpack.yml").exists())
.flat_map(|p| {
[
p.join("options"),
p.join("options.yml"),
p.join("options.yaml"),
]
})
.map(|p| p.join("options.yml"))
.filter(|p| p.exists())
.collect_vec();
option_files.reverse();