diff options
Diffstat (limited to 'runner/job_list.c')
-rw-r--r-- | runner/job_list.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runner/job_list.c b/runner/job_list.c index e3f820c3..5fe88e4f 100644 --- a/runner/job_list.c +++ b/runner/job_list.c @@ -74,13 +74,19 @@ static void add_subtests(struct job_list *job_list, struct settings *settings, } while (fscanf(p, "%ms", &subtestname) == 1) { - if (exclude && exclude->size && matches_any(subtestname, exclude)) { + char *piglitname; + + asprintf(&piglitname, "igt@%s@%s", binary, subtestname); + + if (exclude && exclude->size && matches_any(piglitname, exclude)) { free(subtestname); + free(piglitname); continue; } - if (include && include->size && !matches_any(subtestname, include)) { + if (include && include->size && !matches_any(piglitname, include)) { free(subtestname); + free(piglitname); continue; } @@ -96,6 +102,7 @@ static void add_subtests(struct job_list *job_list, struct settings *settings, } free(subtestname); + free(piglitname); } if (num_subtests) |