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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux