Hi! On 10/22/2014 03:41 PM, Alexey Kodanev wrote: > * copy read_opts() from net_cmdlib.sh library; > * replace TST_EXEC_SUFFIX with more informative name TST_IPV6; > * skip other options; > > Signed-off-by: Alexey Kodanev<alexey.koda...@oracle.com> > --- > testcases/lib/test_net.sh | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > > diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh > index 8cbcb70..24460f3 100644 > --- a/testcases/lib/test_net.sh > +++ b/testcases/lib/test_net.sh > @@ -137,3 +137,18 @@ tst_iface() > link_num=$(( $link_num + 1 )) > echo "$(tst_get_ifaces $type)" | awk '{ print $'"$link_num"' }' > } > + > +# Blank for an IPV4 test; 6 for an IPV6 test. > +TST_IPV6= > + > +tst_read_opts() > +{ > + OPTIND=0 > + while getopts ":6" opt; do > + case "$opt" in > + 6) > + TST_IPV6=6;; > + esac > + done > + OPTIND=0 > +}
Maybe we can run the function inside test_net.sh as well. Any suggestions? Thanks, Alexey ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list