File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ const FAILURE_FILTERS = [{
105105 return null ;
106106 }
107107 const nonFlaky = matches . filter ( ( m ) => ! m . includes ( '# TODO :' ) ) ;
108+ if ( ! nonFlaky . length ) {
109+ return null ;
110+ }
108111 return unique ( nonFlaky ) . map (
109112 match => new JSTestFailure ( ctx , match )
110113 ) ;
@@ -176,7 +179,7 @@ const FAILURE_FILTERS = [{
176179 const pattern = / f a t a l : .+ / g;
177180 const matches = text . match ( pattern ) ;
178181 if ( ! matches ) {
179- return [ ] ;
182+ return null ;
180183 }
181184 const reason = unique ( matches ) . join ( '\n' ) ;
182185 return [ new BuildFailure ( ctx , reason ) ] ;
@@ -187,7 +190,7 @@ const FAILURE_FILTERS = [{
187190 pattern : / F A T A L : .+ / g,
188191 context : { index : - 1 , contextBefore : 0 , contextAfter : 5 }
189192 } , {
190- match : / e r r o r : .+ / g,
193+ pattern : / e r r o r : .+ / g,
191194 context : { index : 0 , contextBefore : 0 , contextAfter : 5 }
192195 } , {
193196 pattern : / m a k e .* : w r i t e e r r o r / mg,
You can’t perform that action at this time.
0 commit comments