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:
许杰友 Jieyou Xu (Joe) 2024-03-05 08:11:27 +00:00
parent 9bebbf14c5
commit 53f48ddbc7
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0

View File

@ -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));
}