Repository navigation
Commit 3485af1
tests: the ownership shards pass their ids to unittest by name and fail closed
The independent read of f539b76 found that unittest.main(module=None,
defaultTest=ids, argv=[prog]) ignores defaultTest and falls back to
discovery, so each CTest shard ran zero tests (exit 0 before Python 3.12,
exit 5 from 3.12). The ids now go into argv, where unittest loads them by
name, and the sharded entry point exits 1 unless the number of tests it ran
equals the number it selected (and all passed); an empty shard is refused.
The CMake headroom comment now uses the heaviest shard (15 of the 39
checker runs, an estimate, about 2.4x on sanitizers) instead of the
average, and the README states what a shard checks. Cases, assertions,
fixtures, the checker and the 180 s timeout are untouched.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>1 parent f539b76 commit 3485af1
3 files changed
Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3774 | 3774 | | |
3775 | 3775 | | |
3776 | 3776 | | |
3777 | | - | |
3778 | | - | |
3779 | | - | |
3780 | | - | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
3781 | 3784 | | |
3782 | 3785 | | |
3783 | 3786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
527 | 538 | | |
528 | 539 | | |
0 commit comments