fix(scanner): reject invalid G09 runner test selection (#7531)

Validate the selected G09 evidence lane before process-substitution case expansion so --plan-only cannot turn an unknown --test value into an empty successful plan.

Co-authored-by: zhi22915 <qiuzgang@gmail.com>
This commit is contained in:
houseme
2026-09-09 00:13:56 +08:00
committed by GitHub
parent 40baedba4f
commit d288496752
@@ -101,6 +101,16 @@ case_names() {
esac
}
validate_test_selection() {
case "$TEST_SELECTION" in
all|mixed-version|rollback)
;;
*)
die "unknown test selection: $TEST_SELECTION"
;;
esac
}
artifact_for() {
case "$1" in
mixed-version)
@@ -518,6 +528,7 @@ while [[ $# -gt 0 ]]; do
esac
done
validate_test_selection
CASES=()
while IFS= read -r case_name; do
CASES+=("$case_name")