From cf804f6239d040dd6825352f6bbd4208e027e0cf Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Thu, 16 Mar 2023 08:05:50 +0100 Subject: [PATCH] CLI: Support lower-case test argument passing isotovideo from os-autoinst already automatically transforms lower-case test parameter command line arguments into upper-case test arguments. openQA so far only checked the validity of upper-case parameters in a regex. Instead we can just support supplied lower-ase test parameter command line arguments as well by just ensuring all arguments are upper-cased. --- lib/OpenQA/Command.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenQA/Command.pm b/lib/OpenQA/Command.pm index 5353d77c7392..54b3b4939546 100644 --- a/lib/OpenQA/Command.pm +++ b/lib/OpenQA/Command.pm @@ -75,11 +75,13 @@ sub parse_headers ($self, @headers) { sub parse_params ($self, $args, $param_file) { my %params; for my $arg (@{$args}) { + $arg = uc $arg; next unless $arg =~ $PARAM_RE; push @{$params{$1}}, $2; } for my $arg (@{$param_file}) { + $arg = uc $arg; next unless $arg =~ $PARAM_RE; push @{$params{$1}}, path($2)->slurp; }