Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1137428imm; Wed, 17 Oct 2018 14:07:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV62FYvdn15PKdZYp5npuEGaK2tC9B65qQPB9AJK9LNaI617QlZzpkCTe34ABxOL2l8qJk64Z X-Received: by 2002:a63:6645:: with SMTP id a66-v6mr25612733pgc.5.1539810428817; Wed, 17 Oct 2018 14:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539810428; cv=none; d=google.com; s=arc-20160816; b=uk4Tg5q0vC9CVkGyuqHFxW1jZBLmb9FbWGhjtykbK9uWiLA9xih5WcQ0iAxivH1foJ GhFGmxbFlI/UbRXYi5jYBm26XsOodX0YaIVqMqsoG9uOrtxqatyyoCoGXCKXlvAw+4Tl UTRe4fUmMEx/i2PKftfbwezNhNa9+OUUSaFCOIEWGaQw/H+oN21j0cpV9wMT6+JkUoZZ BQlTTTD2CsYm7xOReizfLgkN+nMAmj2Edp2sYIMJ/buaJDxOyd6A7PzWiiHvqgGRZBUf CZ4TMWyu3dQWkhA4jAc4YFgrVzC6SwrkEEkAY9wWyM8Wwaa90890qzOIsK8vqO4XbJN1 gHtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=H0/UufO3oHAJ0vSloB7EuWiC/Ry26U3i2z9L9qYz0/A=; b=wsij/PMmsskciin4ofB+tIw2r2sEPz4GyWz1NxWaZ5c9my/VrvLq16l5AMiq84YERH 7jqws0t9Vku4r00+klUAcaUuvECblEya6fQWOj+AjckiANqqnI63mOPnSSbFRkQXtYFm kKvg7DZWbtqN4lYwZvmYAO+cxZoJ2z5vC3fCBwWtcDJVPKiqDopb6Z2lFhZSLqs2JFYl i5FEy0q4qaFmSv8HW46bqiF41isY0zDtQ9Ss031SxnGR+/2lDLj0OGerN1LULftQefGw HbyiJpMr2MtMF6QST3OnPf08/OsKqDBQ1gj4hxyqqPMW+/EfsCuDoWsCFWeAtGXbZwdU XUag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si19100546pgc.366.2018.10.17.14.06.52; Wed, 17 Oct 2018 14:07:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727501AbeJREib convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Oct 2018 00:38:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:55174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbeJREib (ORCPT ); Thu, 18 Oct 2018 00:38:31 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB1562098A; Wed, 17 Oct 2018 20:41:05 +0000 (UTC) Date: Wed, 17 Oct 2018 16:41:03 -0400 From: Steven Rostedt To: Daniel =?UTF-8?B?RMOtYXo=?= Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org (open list), Masami Hiramatsu Subject: Re: [PATCH] selftests/ftrace: Use colored output when available Message-ID: <20181017164103.4fb8692f@gandalf.local.home> In-Reply-To: <20181016170220.31156-1-daniel.diaz@linaro.org> References: <20181016170220.31156-1-daniel.diaz@linaro.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Oct 2018 12:02:20 -0500 Daniel Díaz wrote: > If test is being directly executed (with stdout opened on the > terminal) and the terminal capabilities indicate enough > colors, then use the existing scheme of green, red, and blue > to show when tests pass, fail or end in a different way. > > When running the tests redirecting the stdout, for instance, > to a file, then colors are not shown, thus producing a more > readable output. > > Signed-off-by: Daniel Díaz Acked-by: Steven Rostedt (VMware) Shuah, can you pull this into your tree? Thanks, -- Steve