Skip to content

Commit 1a3841f

Browse files
feat(fmt): apply timeout tainting
1 parent cde2e99 commit 1a3841f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,17 @@ fn run(cli: Cli) -> ExitCode {
789789
fmt_err_found = true;
790790
render_metadata_parse_errors(&path, &file_contents, errors);
791791
}
792-
Ok(file) => {
792+
Ok(mut file) => {
793+
for test in file.tests.values_mut() {
794+
for subtest in &mut test.subtests.values_mut() {
795+
if let Some(expected) = subtest.properties.expectations.as_mut() {
796+
for (_, expected) in expected.iter_mut() {
797+
taint_subtest_timeouts_by_suspicion(expected);
798+
}
799+
}
800+
}
801+
}
802+
793803
match write_to_file(&path, metadata::format_file(&file)) {
794804
Ok(()) => (),
795805
Err(AlreadyReportedToCommandline) => {

0 commit comments

Comments
 (0)