mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
performance-metrics: Support comma-separated test filters
The '--test-filter' and '--test-exclude' arguments only accepted a single keyword, even though the underlying selection logic already matches against a list. Add a comma value delimiter to both so multiple keywords can be passed in one invocation. Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
@@ -1783,15 +1783,17 @@ fn main() {
|
||||
.arg(
|
||||
Arg::new("test-filter")
|
||||
.long("test-filter")
|
||||
.help("Filter metrics tests to run based on provided keywords")
|
||||
.help("Filter metrics tests to run based on provided keywords (comma-separated)")
|
||||
.num_args(1)
|
||||
.value_delimiter(',')
|
||||
.required(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("test-exclude")
|
||||
.long("test-exclude")
|
||||
.help("Exclude metrics tests matching the provided keywords")
|
||||
.help("Exclude metrics tests matching the provided keywords (comma-separated)")
|
||||
.num_args(1)
|
||||
.value_delimiter(',')
|
||||
.required(false),
|
||||
)
|
||||
.arg(
|
||||
|
||||
Reference in New Issue
Block a user