Commit 4e4ea3b
Simplify logic for handling testcases that didn't run
Summary:
# Context
When running a suite, there are various reason why a testcase may end up not running. Most likely because some previous init_per function failed, but it is also possible that the user explicitly skipped it. The test runner needs to figure out what case we are in, and mark it as either a failure or an omission.
# Problem
The logic to do this is unnecessarily convoluted. We have two functions that do the exact same thing, one calling the other for some cases. The only actual differences are:
* One of the two uses `timeout` for the testcase if the init failure was a `timeout`, but we don't emit `timeout` internally, so this is mostly theoretical
* The error messages of one of the functions are more clear than the other, but in practice, we use the less clear ones that talk about "results not being recorded" which for the user is going to be rather cryptic
# This diff
We simplify by keeping only one of the two functions, the one with the more clear error messages.
Reviewed By: TD5
Differential Revision: D87076370
fbshipit-source-id: c7e68352a2b2722b5c3f9c62ab5fc3244abfbc811 parent 12ce4bb commit 4e4ea3b
1 file changed
+6
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 374 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
421 | 380 | | |
422 | 381 | | |
423 | 382 | | |
| |||
0 commit comments