File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ const KNOWN_TEST_STATUSES = new Set([
122
122
// than if we used rational numbers.
123
123
function scoreRuns ( runs , allTestsSet ) {
124
124
const scores = [ ] ;
125
+ const unexpectedNonOKTests = new Set ( ) ;
125
126
try {
126
127
for ( const run of runs ) {
127
128
// Sum of the integer 0-1000 scores for each test.
@@ -139,7 +140,7 @@ function scoreRuns(runs, allTestsSet) {
139
140
let subtestTotal = 1 ;
140
141
if ( 'subtests' in results ) {
141
142
if ( results [ 'status' ] != 'OK' && ! KNOWN_TEST_STATUSES . has ( testname ) ) {
142
- throw new Error ( `Unexpected non-OK status for test: ${ testname } ` ) ;
143
+ unexpectedNonOKTests . add ( testname ) ;
143
144
}
144
145
subtestTotal = results [ 'subtests' ] . length ;
145
146
for ( const subtest of results [ 'subtests' ] ) {
@@ -181,6 +182,13 @@ function scoreRuns(runs, allTestsSet) {
181
182
throw e ;
182
183
}
183
184
185
+ // Log and tests with unexpected non-OK statuses.
186
+ if ( unexpectedNonOKTests . size > 0 ) {
187
+ console . log ( 'Unexpected non-OK status for tests:' ) ;
188
+ for ( const testname of unexpectedNonOKTests . values ( ) ) {
189
+ console . log ( testname ) ;
190
+ }
191
+ }
184
192
return scores ;
185
193
}
186
194
You can’t perform that action at this time.
0 commit comments