[igt-dev] [PATCH i-g-t 2/2] H4X: Default overall-timeout 900s

Petri Latvala petri.latvala at intel.com
Wed Oct 10 10:41:01 UTC 2018


---
 runner/runner_tests.c | 4 ++--
 runner/settings.c     | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/runner/runner_tests.c b/runner/runner_tests.c
index 9c0f9eb0..9554de16 100644
--- a/runner/runner_tests.c
+++ b/runner/runner_tests.c
@@ -219,7 +219,7 @@ igt_main
 		igt_assert(!settings.overwrite);
 		igt_assert(!settings.multiple_mode);
 		igt_assert_eq(settings.inactivity_timeout, 0);
-		igt_assert_eq(settings.overall_timeout, 0);
+		igt_assert_eq(settings.overall_timeout, 900);
 		igt_assert(!settings.use_watchdog);
 		igt_assert(strstr(settings.test_root, "test-root-dir") != NULL);
 		igt_assert(strstr(settings.results_path, "path-to-results") != NULL);
@@ -334,7 +334,7 @@ igt_main
 		igt_assert(!settings.overwrite);
 		igt_assert(!settings.multiple_mode);
 		igt_assert_eq(settings.inactivity_timeout, 0);
-		igt_assert_eq(settings.overall_timeout, 0);
+		igt_assert_eq(settings.overall_timeout, 900);
 		igt_assert(!settings.use_watchdog);
 		igt_assert(strstr(settings.test_root, testdatadir) != NULL);
 		igt_assert(strstr(settings.results_path, "path-to-results") != NULL);
diff --git a/runner/settings.c b/runner/settings.c
index e2401455..91a04559 100644
--- a/runner/settings.c
+++ b/runner/settings.c
@@ -166,6 +166,7 @@ static bool readable_file(char *filename)
 void init_settings(struct settings *settings)
 {
 	memset(settings, 0, sizeof(*settings));
+	settings->overall_timeout = 900;
 }
 
 void free_settings(struct settings *settings)
-- 
2.18.0



More information about the igt-dev mailing list