From: Garrett C. <yan...@gm...> - 2010-10-26 04:52:33
|
On Mon, Oct 25, 2010 at 9:07 PM, ARJIT SHARMA <joy...@gm...> wrote: > Hi, > > In network stress tests > > following error is coming, it is not able to get value of > field variable. > > "" > /opt/ltp/testcases/bin/get_ifname: line 79: field: unbound > variable > broken_ip6-version01 1 TBROK : Failed to get the interface name at the > remote host > "" > > how to resolve this error?? Might be a shell bug because I'm not sure how this could be unset (the error is coming from set -u -- I did that to catch potential bugs in cmdlib.sh): 78 # Pick HWaddr from HWaddr list 79 field=`expr $link_num + 1` 80 hwaddr=`echo $hwaddrs | cut -d ' ' -f $field` 81 if [ x${hwaddr} = x ]; then 82 echo "HWaddr list ($hwaddrs) is something wrong." >&2 83 exit 1 84 fi Thanks, -Garrett |