File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -250,15 +250,23 @@ def main(): # type: () -> int
250
250
test_result = job .result ()
251
251
test_case = test_result .create_test_case (tests [i ])
252
252
total += 1
253
- if test_result .return_code == 1 or \
254
- (test_result .return_code == UNSUPPORTED_FEATURE and test_case .category == REQUIRED ):
253
+ return_code = test_result .return_code
254
+ category = test_case .category
255
+ if return_code == 0 :
256
+ passed += 1
257
+ elif return_code != 0 and return_code != UNSUPPORTED_FEATURE :
258
+ failures += 1
259
+ test_case .add_failure_info (output = test_result .message )
260
+ elif return_code == UNSUPPORTED_FEATURE and category == REQUIRED :
255
261
failures += 1
256
262
test_case .add_failure_info (output = test_result .message )
257
- elif test_result . return_code == UNSUPPORTED_FEATURE :
263
+ elif category != REQUIRED and return_code == UNSUPPORTED_FEATURE :
258
264
unsupported += 1
259
265
test_case .add_skipped_info ("Unsupported" )
260
266
else :
261
- passed += 1
267
+ raise Exception (
268
+ "This is impossible, return_code: {}, category: "
269
+ "{}" .format (return_code , category ))
262
270
report .test_cases .append (test_case )
263
271
except KeyboardInterrupt :
264
272
for job in jobs :
You can’t perform that action at this time.
0 commit comments