[LTP] [PATCH RFC 8/9] ftrace_stress: update the trace_options test

Cyril Hrubis chrubis@suse.cz
Thu Mar 17 18:28:51 CET 2016


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.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list