Skip to content

Commit 53f48dd

Browse files
committed
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.
1 parent 9bebbf1 commit 53f48dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/tidy/src/tests_revision_unpaired_stdout_stderr.rs

+6
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ pub fn check(tests_path: impl AsRef<Path>, bad: &mut bool) {
8888
continue;
8989
};
9090

91+
assert!(
92+
!test_name.contains('.'),
93+
"test name cannot contain dots '.': `{}`",
94+
test.display()
95+
);
96+
9197
test_info.insert(test_name.to_string(), (test, expected_revisions));
9298
}
9399

0 commit comments

Comments
 (0)