From: Thomas Wood Subject: [PATCH i-g-t 1/4] tests/kms_flip: only print the activity indicator if output is a terminal Date: Mon, 29 Sep 2014 16:28:15 +0100 Message-ID: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by gabe.freedesktop.org (Postfix) with ESMTP id C6FB272394 for ; Mon, 29 Sep 2014 08:28:21 -0700 (PDT) Received: by mail-we0-f180.google.com with SMTP id x48so2444601wes.11 for ; Mon, 29 Sep 2014 08:28:20 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Thomas Wood --- 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