Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751854AbdGEQ3V (ORCPT ); Wed, 5 Jul 2017 12:29:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:57786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751653AbdGEQ3U (ORCPT ); Wed, 5 Jul 2017 12:29:20 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCC8622B53 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 5 Jul 2017 12:29:17 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: linux-kselftest@vger.kernel.org, shuah@kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org, naresh.kamboju@linaro.org Subject: Re: [PATCH 4/4] selftests: ftrace: Output only to console with "--logdir -" Message-ID: <20170705122917.03346f2d@gandalf.local.home> In-Reply-To: <20170705122506.6235765e@gandalf.local.home> References: <149915006959.18583.13997841764160473197.stgit@devbox> <149915032497.18583.11626955093827357641.stgit@devbox> <20170705122506.6235765e@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 561 Lines: 24 On Wed, 5 Jul 2017 12:25:06 -0400 Steven Rostedt wrote: > > @@ -255,12 +262,18 @@ __run_test() { # testfile > > # Run one test case > > run_test() { # testfile > > local testname=`basename $1` > > - local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX` > > + if [ "$LOG_FILE" ] ; then > > Shouldn't this be > > if [ ! -z "$LOG_FILE" ]; then > > ? > OK, I just checked it out. I guess "" is considered zero and "" is considered 1. Hmm, do we do this in other places too. Just makes me unconfortable. -- Steve