Commit d600510
committed
FEAT: Add --vt-keep-at-variants-in-shortnames option to preserve @default variants in test names
Add new command-line option --vt-keep-at-variants-in-shortnames to control
whether @-prefixed variants (like @default) are included in short test names
when using --vt-short-names-when-config.
Changes:
- virttest/cartesian_config.py: Add keep_at_variants_in_shortnames parameter
to Parser constructor and modify shortname generation logic
- avocado_vt/plugins/vt.py: Add new CLI option --vt-keep-at-variants-in-shortnames
- avocado_vt/plugins/vt_init.py: Register new setting for keep_at_variants_in_shortnames
- avocado_vt/options.py: Pass new parameter to cartesian parser instantiation
Usage:
avocado run xxxxx --vt-config myconfig.cfg --vt-short-names-when-config --vt-keep-at-variants-in-shortnames
Without the flag: test.eim_off.q35 (excludes @default)
With the flag: test.eim_off.default.q35 (includes @default)
Assisted-By: Claude Sonnet 4 <noreply@anthropic.com>
Signed-off-by: Houqi (Nick) Zuo <hzuo@redhat.com>1 parent a3cfa5a commit d600510
4 files changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
549 | 553 | | |
550 | 554 | | |
551 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
71 | 84 | | |
72 | 85 | | |
73 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | 75 | | |
64 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
| 1483 | + | |
1484 | 1484 | | |
1485 | 1485 | | |
1486 | 1486 | | |
1487 | 1487 | | |
| 1488 | + | |
1488 | 1489 | | |
1489 | 1490 | | |
1490 | 1491 | | |
| |||
1787 | 1788 | | |
1788 | 1789 | | |
1789 | 1790 | | |
1790 | | - | |
| 1791 | + | |
1791 | 1792 | | |
1792 | 1793 | | |
1793 | 1794 | | |
| |||
0 commit comments