[PATCH i-g-t 09/26] Disable socket comms for unittests that parse non-socket data

Petri Latvala petri.latvala at intel.com
Fri Mar 12 11:03:24 UTC 2021


---
 runner/runner_tests.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/runner/runner_tests.c b/runner/runner_tests.c
index cd033f6c..9ee8d70d 100644
--- a/runner/runner_tests.c
+++ b/runner/runner_tests.c
@@ -1406,6 +1406,8 @@ igt_main
 			char dirname[] = "tmpdirXXXXXX";
 
 			igt_fixture {
+				/* This test checks that the stdout parsing for result without time data works, so use that */
+				setenv("IGT_RUNNER_DISABLE_SOCKET_COMMUNICATION", "1", 1);
 				igt_require(mkdtemp(dirname) != NULL);
 				rmdir(dirname);
 			}
@@ -1469,6 +1471,7 @@ igt_main
 				close(dirfd);
 				clear_directory(dirname);
 				free_job_list(list);
+				unsetenv("IGT_RUNNER_DISABLE_SOCKET_COMMUNICATION");
 			}
 		}
 
-- 
2.29.2



More information about the Intel-gfx-trybot mailing list