Commit 807aa90
committed
roachtest: support test name variation suffixes in perturbation framework
Add an optional perturbationNamer interface a perturbation may implement
to append a variation suffix to its test name. With this a single struct
type can register multiple test entries that differ in configuration; a
later commit uses it to register the splits test in two flavors (followers
asleep vs. forced awake) under distinct names like
perturbation/full/splits/asleep=true
perturbation/full/splits/asleep=false
without resorting to one struct per variant.
No behavior change for existing perturbations — none of them implement
the interface, so perturbationName() falls through to the reflection-based
type name as before.
Epic: none
Release note: None1 parent ef76e92 commit 807aa90
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
449 | 456 | | |
450 | 457 | | |
451 | 458 | | |
| |||
724 | 731 | | |
725 | 732 | | |
726 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
727 | 747 | | |
728 | 748 | | |
729 | 749 | | |
| |||
0 commit comments