[LTP] [PATCH RFC 8/9] ftrace_stress: update the trace_options test
Chunyu Hu
chuhu@redhat.com
Fri Mar 18 14:24:23 CET 2016
----- Original Message -----
> From: "Cyril Hrubis" <chrubis@suse.cz>
> To: "Li Wang" <liwang@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Friday, March 18, 2016 1:28:51 AM
> Subject: Re: [LTP] [PATCH RFC 8/9] ftrace_stress: update the trace_options test
>
> Hi!
> > > +# enable the nop_test_refuse can cause an
> > > +# 'write error: Invalid argument'. So don't
> > > +# test it.
> > > +option_files=${option_files/test_nop_refuse/}
> > > +trace_options=( $option_files )
> > > +
> > > +NR_TRACE_OPTIONS=${#trace_options[*]}
> >
> > This does not work even in bash because the trace_options is never
> > casted to array so it just returns 0.
>
> My bad, it is converted by the ().
>
> But the point is the same, use portable code.
Thanks for suggestion! Will make it a string in V2.
> --
> Cyril Hrubis
> chrubis@suse.cz
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
--
Regards,
Chunyu Hu
More information about the ltp
mailing list