[LTP] [PATCH 2/2] network/vxlan: Fix getopts parameters passed from vxlan03 to virt_lib.sh
Petr Vorel
pvorel@suse.cz
Mon Apr 30 08:25:42 CEST 2018
Hi Alexey,
> Hi Petr,
> What about using TST_OPTS and TST_PARSE_ARGS here, instead of 'while getopts...'
> and 'shift'?
> virt_parse_args()
> {
> case "$1" in
> h)
> ...
> ;;
> i) start_id=$OPTARG ;;
> d) vxlan_dst_addr=$OPTARG ;;
> esac
> }
> TST_OPTS="hi:d:"
> TST_PARSE_ARGS=virt_parse_args
Sure :). Thanks for reminding me my own code :).
I've sent v2 with it, can you have a quick look?
Kind regards,
Petr
More information about the ltp
mailing list