diff options
author | Simon Ser <simon.ser@intel.com> | 2019-03-21 14:44:49 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-04-16 12:39:32 +0300 |
commit | 6e196707c1363391d0d38be14e532272612439e0 (patch) | |
tree | 49adea6025aeaf4f5c99320be3e277b709095c79 /runner | |
parent | 2bd82477a9ee6aa308e0f1045df4901f766683ea (diff) | |
download | platform_external_igt-gpu-tools-6e196707c1363391d0d38be14e532272612439e0.tar.gz platform_external_igt-gpu-tools-6e196707c1363391d0d38be14e532272612439e0.tar.bz2 platform_external_igt-gpu-tools-6e196707c1363391d0d38be14e532272612439e0.zip |
runner/job_list: print error when job list is empty
Using a filter that doesn't match any test name resulted in the runner
silently failing. Print an error message so that the user understands
why the runner fails.
Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'runner')
-rw-r--r-- | runner/job_list.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runner/job_list.c b/runner/job_list.c index 97bbb0be..941e2ee0 100644 --- a/runner/job_list.c +++ b/runner/job_list.c @@ -133,6 +133,7 @@ static bool filtered_job_list(struct job_list *job_list, { FILE *f; char buf[128]; + bool ok; if (job_list->entries != NULL) { fprintf(stderr, "Caller didn't clear the job list, this shouldn't happen\n"); @@ -179,7 +180,11 @@ static bool filtered_job_list(struct job_list *job_list, &settings->exclude_regexes); } - return job_list->size != 0; + ok = job_list->size != 0; + if (!ok) + fprintf(stderr, "Filter didn't match any job name\n"); + + return ok; } static bool job_list_from_test_list(struct job_list *job_list, |