public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] igt: Allow ':' in subtest names
@ 2020-04-11 11:14 Chris Wilson
  2020-04-11 11:14 ` [igt-dev] [PATCH i-g-t 2/2] kms_flip: Convert to dynamic CRTC test groups Chris Wilson
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Chris Wilson @ 2020-04-11 11:14 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala, Chris Wilson

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
---
 lib/igt_core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 778624984..ca3e26c64 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1179,10 +1179,12 @@ static bool valid_name_for_subtest(const char *subtest_name)
 {
 	int i;
 
-	/* check the subtest name only contains a-z, A-Z, 0-9, '-' and '_' */
+	/* check the subtest name only contains a-z, A-Z, 0-9, [-_:] */
 	for (i = 0; subtest_name[i] != '\0'; i++)
-		if (subtest_name[i] != '_' && subtest_name[i] != '-'
-		    && !isalnum(subtest_name[i]))
+		if (subtest_name[i] != '_' &&
+		    subtest_name[i] != '-' &&
+		    subtest_name[i] != ':' &&
+		    !isalnum(subtest_name[i]))
 			return false;
 
 	return true;
-- 
2.26.0

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-14  9:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-11 11:14 [igt-dev] [PATCH i-g-t 1/2] igt: Allow ':' in subtest names Chris Wilson
2020-04-11 11:14 ` [igt-dev] [PATCH i-g-t 2/2] kms_flip: Convert to dynamic CRTC test groups Chris Wilson
2020-04-14  9:48   ` Petri Latvala
2020-04-11 12:02 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] igt: Allow ':' in subtest names Patchwork
2020-04-11 12:24 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2020-04-11 12:53 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t] igt: Allow ':' in subtest names (rev2) Patchwork
2020-04-12  0:29 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/2] igt: Allow ':' in subtest names Patchwork
2020-04-12  0:50 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t] igt: Allow ':' in subtest names (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox