Skip to content
Snippets Groups Projects
Commit 03358408 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

runner/job_list: use case-insensitive regular expressions


There are some KMS tests that are case-sensitive. Eventually,
those could be blocklisted with a different case, causing troubles
for CI runs.

As it makes no sense to have the same test name with different
cases, handle regular expressions in a case-insensitive way.

Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 6e3e8e6d
Loading
......@@ -323,7 +323,7 @@ static bool add_regex(struct regex_list *list, char *new)
GRegex *regex;
GError *error = NULL;
regex = g_regex_new(new, G_REGEX_OPTIMIZE, 0, &error);
regex = g_regex_new(new, G_REGEX_CASELESS | G_REGEX_OPTIMIZE, 0, &error);
if (error) {
usage(stderr, "Invalid regex '%s': %s", new, error->message);
g_error_free(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment