[Intel-gfx] [PATCH i-g-t] kms_atomic_transition: Output more finegrained progress info to avoid CI watchdog timeout
Imre Deak
imre.deak at intel.com
Wed Oct 18 11:29:33 UTC 2017
The CI software watchdog (owatch) will timeout if the test doesn't
output anything for a long time on standard out or error. At least the
plane-all-modeset-transition and plane-all-modeset-transition-fences
subtests run without any output longer than the watchdog timeout, so
output some more progress info.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103334
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
tests/kms_atomic_transition.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 2ae75f2d..db43d2c9 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -525,6 +525,9 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *output
}
for (i = 0; i < iter_max; i++) {
+ igt_info(".");
+ fflush(stdout);
+
igt_output_set_pipe(output, pipe);
wm_setup_plane(display, pipe, i, parms, fencing);
@@ -544,6 +547,9 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *output
/* i -> i+1 will be done when i increases, can be skipped here */
for (j = iter_max - 1; j > i + 1; j--) {
+ igt_info(".");
+ fflush(stdout);
+
wm_setup_plane(display, pipe, j, parms, fencing);
if (type == TRANSITION_MODESET)
@@ -562,6 +568,8 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *output
}
}
+ igt_info("\n");
+
cleanup:
if (fencing)
unprepare_fencing(display, pipe);
@@ -780,6 +788,9 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
if (!event_mask)
continue;
+ igt_info(".");
+ fflush(stdout);
+
commit_display(display, event_mask, nonblocking);
collect_crcs_mask(pipe_crcs, j, crcs[1]);
@@ -814,6 +825,8 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
}
}
+ igt_info("\n");
+
cleanup:
set_combinations(display, 0, NULL);
igt_display_commit2(display, COMMIT_ATOMIC);
--
2.11.0
More information about the Intel-gfx
mailing list