Skip to content

Commit 4ec9ffd

Browse files
committed
Auto merge of #59250 - bovinebuddha:filter_ui_revision_tests, r=petrochenkov
Filter ui revision tests Updates UI test output filtering to also filter away test annotations for revisions: Previously filtered: //~ ERROR [XXXX] Now also filters: //[revision]~ ERROR [XXXX] I reckon, if we have the one, we should have the other for consistency, its lack was probably an oversight (the existence of revision testing is not really well documented...)
2 parents 755b662 + 14700dc commit 4ec9ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@ impl<'test> TestCx<'test> {
31103110

31113111
// Remove test annotations like `//~ ERROR text` from the output,
31123112
// since they duplicate actual errors and make the output hard to read.
3113-
normalized = Regex::new("\\s*//~.*").unwrap()
3113+
normalized = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap()
31143114
.replace_all(&normalized, "").into_owned();
31153115

31163116
for rule in custom_rules {

0 commit comments

Comments
 (0)