File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ async function run() {
168
168
console . log ( `Running ${ testPaths . length } of ${ totalCount } tests ...\n` ) ;
169
169
170
170
let expectationsUpdated = 0 ;
171
+ let unexpectedFailure = false ;
171
172
172
173
let stats = await runTests ( testPaths , viceroy ,
173
174
( testPath , results , stats ) => {
@@ -199,6 +200,8 @@ async function run() {
199
200
console . log ( `Removing expectations file ${ expectPath } ` ) ;
200
201
rmSync ( expectPath ) ;
201
202
expectationsUpdated ++ ;
203
+ } else {
204
+ unexpectedFailure = true ;
202
205
}
203
206
} else {
204
207
console . log ( `EXPECTED ERROR: ${ testPath } (${ stats . duration } ms)` ) ;
@@ -213,7 +216,7 @@ async function run() {
213
216
214
217
if ( config . tests . updateExpectations ) {
215
218
console . log ( `Expectations updated: ${ expectationsUpdated } ` ) ;
216
- } else if ( stats . unexpectedFail + stats . unexpectedPass != 0 ) {
219
+ } else if ( stats . unexpectedFail + stats . unexpectedPass != 0 || unexpectedFailure ) {
217
220
process . exitCode = 1 ;
218
221
}
219
222
}
You can’t perform that action at this time.
0 commit comments