Assert that test names cannot contain dots
This is so that we can catch stray test output files, since test names without dots can form predictable patterns we can match on.
This commit is contained in:
parent
9bebbf14c5
commit
53f48ddbc7
@ -88,6 +88,12 @@ pub fn check(tests_path: impl AsRef<Path>, bad: &mut bool) {
|
||||
continue;
|
||||
};
|
||||
|
||||
assert!(
|
||||
!test_name.contains('.'),
|
||||
"test name cannot contain dots '.': `{}`",
|
||||
test.display()
|
||||
);
|
||||
|
||||
test_info.insert(test_name.to_string(), (test, expected_revisions));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user