Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1642581
| From | Masami Hiramatsu <masami.hiramatsu@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/4] selftests/ftrace: Fix bashisms |
| Date | 2017-05-16 16:30 +0200 |
| Message-ID | <tHLE5-6Kq-1@gated-at.bofh.it> (permalink) |
| References | <tGL3r-7WF-17@gated-at.bofh.it> <tGL3s-7WF-37@gated-at.bofh.it> <tHpWW-1pB-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 15 May 2017 11:16:30 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
>
> Masami's the original author of ftracetest.
>
> Masami, are you OK with this change?
>
> -- Steve
>
>
> On Sun, 14 May 2017 01:01:03 +0530
> "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> wrote:
>
> > Fix a few bashisms in ftrace selftests.
Ah, what's a nice fix!
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Thanks!
> >
> > Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> > ---
> > tools/testing/selftests/ftrace/ftracetest | 2 +-
> > tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc | 2 +-
> > tools/testing/selftests/ftrace/test.d/functions | 4 ++--
> > 3 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
> > index 32e6211e1c6e..717581145cfc 100755
> > --- a/tools/testing/selftests/ftrace/ftracetest
> > +++ b/tools/testing/selftests/ftrace/ftracetest
> > @@ -58,7 +58,7 @@ parse_opts() { # opts
> > ;;
> > --verbose|-v|-vv)
> > VERBOSE=$((VERBOSE + 1))
> > - [ $1 == '-vv' ] && VERBOSE=$((VERBOSE + 1))
> > + [ $1 = '-vv' ] && VERBOSE=$((VERBOSE + 1))
> > shift 1
> > ;;
> > --debug|-d)
> > diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
> > index 07bb3e5930b4..aa31368851c9 100644
> > --- a/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
> > @@ -48,7 +48,7 @@ test_event_enabled() {
> > e=`cat $EVENT_ENABLE`
> > if [ "$e" != $val ]; then
> > echo "Expected $val but found $e"
> > - exit -1
> > + exit 1
> > fi
> > }
> >
> > diff --git a/tools/testing/selftests/ftrace/test.d/functions b/tools/testing/selftests/ftrace/test.d/functions
> > index 9aec6fcb7729..f2019b37370d 100644
> > --- a/tools/testing/selftests/ftrace/test.d/functions
> > +++ b/tools/testing/selftests/ftrace/test.d/functions
> > @@ -34,10 +34,10 @@ reset_ftrace_filter() { # reset all triggers in set_ftrace_filter
> > echo > set_ftrace_filter
> > grep -v '^#' set_ftrace_filter | while read t; do
> > tr=`echo $t | cut -d: -f2`
> > - if [ "$tr" == "" ]; then
> > + if [ "$tr" = "" ]; then
> > continue
> > fi
> > - if [ $tr == "enable_event" -o $tr == "disable_event" ]; then
> > + if [ $tr = "enable_event" -o $tr = "disable_event" ]; then
> > tr=`echo $t | cut -d: -f1-4`
> > limit=`echo $t | cut -d: -f5`
> > else
>
--
Masami Hiramatsu
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/4] ftrace: Fix a few issues "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-05-13 21:40 +0200
[PATCH 1/4] ftrace: Simplify glob handling in unregister_ftrace_function_probe_func() "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-05-13 21:40 +0200
Re: [PATCH 1/4] ftrace: Simplify glob handling in unregister_ftrace_function_probe_func() Steven Rostedt <rostedt@goodmis.org> - 2017-05-15 19:30 +0200
Re: [PATCH 1/4] ftrace: Simplify glob handling in unregister_ftrace_function_probe_func() "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-05-16 10:10 +0200
[PATCH 3/4] selftests/ftrace: Fix bashisms "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-05-13 21:40 +0200
Re: [PATCH 3/4] selftests/ftrace: Fix bashisms Steven Rostedt <rostedt@goodmis.org> - 2017-05-15 17:20 +0200
Re: [PATCH 3/4] selftests/ftrace: Fix bashisms Masami Hiramatsu <masami.hiramatsu@gmail.com> - 2017-05-16 16:30 +0200
csiph-web