From: Daniel Vetter Subject: Re: [PATCH i-g-t 1/4] tests/kms_flip: only print the activity indicator if output is a terminal Date: Mon, 29 Sep 2014 18:39:27 +0200 Message-ID: <20140929163927.GZ4109@phenom.ffwll.local> References: <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-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 190894B790 for ; Mon, 29 Sep 2014 09:39:29 -0700 (PDT) Received: by mail-wi0-f180.google.com with SMTP id em10so1498744wid.13 for ; Mon, 29 Sep 2014 09:39:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Thomas Wood Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 29, 2014 at 04:28:15PM +0100, Thomas Wood wrote: > 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); > + } Hm, igt_interactive_info() to wrap this? -Daniel > > if (do_flip && (o->flags & TEST_HANG)) { > hang = hang_gpu(drm_fd); > -- > 2.1.0 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch