[Intel-gfx] [PATCH i-g-t] igt/lib: Ignoring subtest name case

Lukasz Fiedorowicz lukasz.fiedorowicz at intel.com
Tue Oct 24 10:53:06 UTC 2017


Lists in intel-ci directory are kept in all lower case but the subtest
names are mix of lower and upper case.
Piglit is able to handle this but not every CI is using piglit. Changing
condition to ignore subtest names case.

Signed-off-by: Lukasz Fiedorowicz <lukasz.fiedorowicz at intel.com>
---
 lib/igt_core.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 538a447..743e82b 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -965,10 +965,11 @@ bool __igt_run_subtest(const char *subtest_name)
 	}
 
 	if (run_single_subtest) {
-		if (uwildmat(subtest_name, run_single_subtest) == 0)
+		if (uwildmat(subtest_name, run_single_subtest)
+        || strcasecmp(subtest_name, run_single_subtest) == 0)
+        run_single_subtest_found = true;
+		else
 			return false;
-		else
-			run_single_subtest_found = true;
 	}
 
 	if (skip_subtests_henceforth) {
-- 
2.9.5



More information about the Intel-gfx mailing list