From patchwork Mon Sep 29 15:28:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 4997661 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1C465BEEA6 for ; Mon, 29 Sep 2014 15:46:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D28F2016C for ; Mon, 29 Sep 2014 15:46:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7DA6A20160 for ; Mon, 29 Sep 2014 15:46:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A93AE733C1; Mon, 29 Sep 2014 08:46:43 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=f1g9EsskXcNJ6O96juKINx2SP7drFHsIBfFVtdIlDv8=; b=OPn0VJNsYlucYDeYmmoVLia/nqeg6QwAMbs6QUYcXwjzlfS2x0TNjjpXpsm1ClmN88 HMU+YNWzx51TmJnls6D8fxxurI9Ao7OT3cCYMgiGWzeefqrHIg7JLVDWnt0wXEqBl+dB GvZESzE0o6nHJq3GAg8WaZzH/6PrqDSxpe+B01U6uLyznLa4R6hGn98PhAL4ObJj3Wmy zl1HLyrJTf13swHjM40pKkKq0HnZ/RHOxdojfUn+g2ThIPKGK+BCVja/V5XqFGLP/2pJ 8ECeW0i68KUSWR8I2rGXT+dmGUcwlngVL04NLcpVagwDPIxDQyrJMG5Bq//LwMJKdn7/ GSEQ== X-Gm-Message-State: ALoCoQmxo9Nx3UonAE8MWlKsEzvcqeXQx0Huu4br0QAHyRbpmRIFi0JTLXrL+F0fuf1KBNUPlNYE X-Received: by 10.180.99.163 with SMTP id er3mr62577249wib.23.1412004500722; Mon, 29 Sep 2014 08:28:20 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ua8sm16089212wjc.7.2014.09.29.08.28.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Sep 2014 08:28:19 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Mon, 29 Sep 2014 16:28:15 +0100 Message-Id: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [Intel-gfx] [PATCH i-g-t 1/4] tests/kms_flip: only print the activity indicator if output is a terminal X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);