scripts: Propagate "--test-filter" metrics test

Populate iff the the parameter is passed.

Following combinations tested:

scripts/dev_cli.sh tests --metrics -- --test-filter boot_time
scripts/dev_cli.sh tests --metrics -- --test-filter boot_time -- --report-file /root/workloads/metrics.json
scripts/dev_cli.sh tests --metrics
scripts/dev_cli.sh tests --metrics --  -- --report-file /root/workloads/metrics.json

Fixes: #3787

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-03-07 13:39:26 +00:00
parent 885dce4082
commit 1f077e7871
2 changed files with 7 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
#!/bin/bash
hypervisor="kvm"
test_filter=""
test_binary_args=()
cmd_help() {
echo ""
@@ -44,5 +43,5 @@ process_common_args() {
die "Hypervisor value must be kvm or mshv"
fi
test_binary_args="$@"
test_binary_args=($@)
}