yaml-test-suite: print the names of missing XFAILs
This commit is contained in:
parent
080d7d5275
commit
9fd57469a4
1 changed files with 5 additions and 2 deletions
|
@ -35,8 +35,11 @@ fn main() -> Result<()> {
|
|||
let mut tests: Vec<_> = tests.into_iter().flatten().collect();
|
||||
tests.sort_by_key(|t| t.name.clone());
|
||||
|
||||
for &test in EXPECTED_FAILURES {
|
||||
assert!(tests.iter().find(|t| t.name == test).is_some());
|
||||
let missing_xfails: Vec<_> = EXPECTED_FAILURES.iter()
|
||||
.filter(|&&test| !tests.iter().any(|t| t.name == test))
|
||||
.collect();
|
||||
if !missing_xfails.is_empty() {
|
||||
panic!("The following EXPECTED_FAILURES not found during discovery: {:?}", missing_xfails);
|
||||
}
|
||||
|
||||
run_tests(
|
||||
|
|
Loading…
Reference in a new issue