[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180824175017.7a902933@gandalf.local.home>
Date: Fri, 24 Aug 2018 17:50:17 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Shuah Khan <shuah@...nel.org>, Ingo Molnar <mingo@...hat.com>,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 10/32] selftests/ftrace: Fix checkbashisms errors
On Fri, 17 Aug 2018 01:33:55 +0900
Masami Hiramatsu <mhiramat@...nel.org> wrote:
> Fix a test case to make checkbashisms clean.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@...nel.org>
> ---
> .../trigger/trigger-trace-marker-snapshot.tc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc
> index 79ce7d51350b..df246e505af7 100644
> --- a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc
> +++ b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc
> @@ -39,10 +39,10 @@ test_trace() {
> fi
> echo "testing $line for >$x<"
> match=`echo $line | sed -e "s/>$x<//"`
> - if [ "$line" == "$match" ]; then
> + if [ "$line" = "$match" ]; then
> fail "$line does not have >$x< in it"
> fi
> - let x=$x+2
> + x=$((x+2))
I didn't realize "let" was a bashism. I've been using that on other
shells I believe. But whatever.
Acked-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
-- Steve
> done
> }
>
Powered by blists - more mailing lists