scripts: Wire --test-exclude through test harness

Add --test-exclude to process_common_args in test-util.sh and forward
it to the performance-metrics binary from run_metrics.sh.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-18 00:09:22 +01:00
committed by Rob Bradford
parent 0e7b2d68fc
commit 07479536ab
2 changed files with 8 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ if [ -n "$test_filter" ]; then
test_binary_args+=("--test-filter $test_filter")
fi
if [ -n "$test_exclude" ]; then
test_binary_args+=("--test-exclude $test_exclude")
fi
# Ensure that git commands can be run in this directory (for metrics report)
git config --global --add safe.directory "$PWD"

View File

@@ -122,6 +122,10 @@ process_common_args() {
shift
test_filter="$1"
;;
"--test-exclude")
shift
test_exclude="$1"
;;
"--build-guest-kernel")
build_kernel=true
;;