Commit 90753a9
committed
clar: refactor explicitly run test behavior
Previously, supplying `-s` to explicitly enable some test(s) would run
the tests immediately from the argument parser. This forces us to set
up the entire clar environment (for example: sandboxing) before argument
parsing takes place.
Refactor the behavior of `-s` to add the explicitly chosen tests to a
list that is executed later. This untangles the argument parsing from
the setup lifecycle, allowing us to use the arguments to perform the
setup.1 parent 695067f commit 90753a9
1 file changed
+44
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
359 | 366 | | |
360 | 367 | | |
361 | 368 | | |
362 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
363 | 387 | | |
364 | 388 | | |
365 | 389 | | |
| |||
412 | 436 | | |
413 | 437 | | |
414 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
415 | 442 | | |
416 | 443 | | |
417 | 444 | | |
418 | 445 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | 446 | | |
423 | 447 | | |
424 | 448 | | |
425 | 449 | | |
426 | 450 | | |
427 | | - | |
428 | | - | |
| 451 | + | |
| 452 | + | |
429 | 453 | | |
430 | | - | |
431 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
432 | 458 | | |
433 | 459 | | |
434 | 460 | | |
| |||
439 | 465 | | |
440 | 466 | | |
441 | 467 | | |
| 468 | + | |
| 469 | + | |
442 | 470 | | |
443 | 471 | | |
444 | 472 | | |
445 | 473 | | |
446 | 474 | | |
447 | 475 | | |
448 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
449 | 482 | | |
450 | 483 | | |
451 | 484 | | |
| |||
0 commit comments