igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/3] runner: Lowercase the name used for matching -t and -x
Date: Thu, 20 Sep 2018 13:55:06 +0300	[thread overview]
Message-ID: <20180920105507.23776-2-petri.latvala@intel.com> (raw)
In-Reply-To: <20180920105507.23776-1-petri.latvala@intel.com>

And thus make it possible to run -t basic-s3 for example.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 runner/job_list.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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)
-- 
2.18.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-09-20 10:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-20 10:55 [igt-dev] [PATCH i-g-t 1/3] runner: Make generate_piglit_name non-static Petri Latvala
2018-09-20 10:55 ` Petri Latvala [this message]
2018-09-20 10:55 ` [igt-dev] [PATCH i-g-t 3/3] runner: Support -t and -x with a --test-list Petri Latvala
2018-09-20 12:51 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] runner: Make generate_piglit_name non-static Patchwork
2018-09-20 15:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-09-21 10:08 ` [igt-dev] [PATCH i-g-t 1/3] " Arkadiusz Hiler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180920105507.23776-2-petri.latvala@intel.com \
    --to=petri.latvala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).