Skip to content

Commit 10d745c

Browse files
committed
Do not run UI tests in the error-emitter directory
1 parent 500fce1 commit 10d745c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build_system/src/test.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,14 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
876876
return Ok(true);
877877
}
878878
}
879-
if file_path.display().to_string().contains("ambiguous-4-extern.rs") {
879+
let file_path = file_path.display().to_string();
880+
if file_path.contains("ambiguous-4-extern.rs") {
880881
eprintln!("nothing found for {file_path:?}");
881882
}
883+
// The files in this directory contain errors.
884+
if file_path.contains("/error-emitter/") {
885+
return Ok(true);
886+
}
882887
Ok(false)
883888
}
884889

0 commit comments

Comments
 (0)