Skip to content

Commit 92b1081

Browse files
committed
tidy: skip revision llvm-components check for run-make tests
Since run-make tests do not support revisions.
1 parent 3f121b9 commit 92b1081

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tools/tidy/src/target_specific_tests.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ struct RevisionInfo<'a> {
3636
llvm_components: Option<Vec<&'a str>>,
3737
}
3838

39-
pub fn check(path: &Path, bad: &mut bool) {
40-
crate::walk::walk(path, |path, _is_dir| filter_not_rust(path), &mut |entry, content| {
39+
pub fn check(tests_path: &Path, bad: &mut bool) {
40+
crate::walk::walk(tests_path, |path, _is_dir| filter_not_rust(path), &mut |entry, content| {
4141
let file = entry.path().display();
4242
let mut header_map = BTreeMap::new();
4343
iter_header(content, &mut |HeaderLine { revision, directive, .. }| {
@@ -65,6 +65,12 @@ pub fn check(path: &Path, bad: &mut bool) {
6565
}
6666
}
6767
});
68+
69+
// Skip run-make tests as revisions are not supported.
70+
if entry.path().strip_prefix(tests_path).is_ok_and(|rest| rest.starts_with("run-make")) {
71+
return;
72+
}
73+
6874
for (rev, RevisionInfo { target_arch, llvm_components }) in &header_map {
6975
let rev = rev.unwrap_or("[unspecified]");
7076
match (target_arch, llvm_components) {

0 commit comments

Comments
 (0)