Skip to content

Commit 66812a3

Browse files
committed
Ignore tidy target check in run-make-cargo
run-make-cargo tests can specify the target in ways we do not detect in the check, so disable the check there.
1 parent 83e49b7 commit 66812a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/tidy/src/target_specific_tests.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ pub fn check(tests_path: &Path, tidy_ctx: TidyCtx) {
5353
});
5454

5555
// Skip run-make tests as revisions are not supported.
56-
if entry.path().strip_prefix(tests_path).is_ok_and(|rest| rest.starts_with("run-make")) {
56+
// Skip run-make-cargo tests as they can specify the target in ways we do not detect here.
57+
if entry
58+
.path()
59+
.strip_prefix(tests_path)
60+
.is_ok_and(|rest| rest.starts_with("run-make") || rest.starts_with("run-make-cargo"))
61+
{
5762
return;
5863
}
5964

0 commit comments

Comments
 (0)