[Intel-gfx] [PATCH i-g-t 1/4] tests/kms_flip: only print the activity indicator if output is a terminal

Thomas Wood thomas.wood at intel.com
Mon Sep 29 17:28:15 CEST 2014


Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
 tests/kms_flip.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 3d3aa9b..8551f64 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -885,7 +885,10 @@ static unsigned int run_test_step(struct test_output *o)
 		join_vblank_wait_thread();
 	}
 
-	igt_info("."); fflush(stdout);
+	if (isatty(STDOUT_FILENO)) {
+		igt_info(".");
+		fflush(stdout);
+	}
 
 	if (do_flip && (o->flags & TEST_HANG)) {
 		hang = hang_gpu(drm_fd);
-- 
2.1.0




More information about the Intel-gfx mailing list