[igt-dev] [PATCH i-g-t 1/2] igt: Allow ':' in subtest names
Chris Wilson
chris at chris-wilson.co.uk
Sat Apr 11 11:14:26 UTC 2020
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala at 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
More information about the igt-dev
mailing list