From 8dab213b5352bf7ba93e20032025cad2610b10ac Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Thu, 20 Sep 2018 13:55:06 +0300 Subject: runner: Lowercase the name used for matching -t and -x And thus make it possible to run -t basic-s3 for example. Signed-off-by: Petri Latvala Reviewed-by: Arkadiusz Hiler Acked-by: Tomi Sarvela #irc --- runner/job_list.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'runner') diff --git a/runner/job_list.c b/runner/job_list.c index 88f59b05..9cf19c45 100644 --- a/runner/job_list.c +++ b/runner/job_list.c @@ -75,19 +75,17 @@ static void add_subtests(struct job_list *job_list, struct settings *settings, } while (fscanf(p, "%ms", &subtestname) == 1) { - char *piglitname; + char piglitname[256]; - asprintf(&piglitname, "igt@%s@%s", binary, subtestname); + generate_piglit_name(binary, subtestname, piglitname, sizeof(piglitname)); if (exclude && exclude->size && matches_any(piglitname, exclude)) { free(subtestname); - free(piglitname); continue; } if (include && include->size && !matches_any(piglitname, include)) { free(subtestname); - free(piglitname); continue; } @@ -103,7 +101,6 @@ static void add_subtests(struct job_list *job_list, struct settings *settings, } free(subtestname); - free(piglitname); } if (num_subtests) -- cgit v1.2.3