Tom Chen wrote:
> Hi,
> 
> I encountered a strange issue with NICDrv0706 running on Solaris10, Sparc 
> platform. 
> 
> After 10m file size test is finished, the NICDrv test00 will continue on 100m 
> file tranfering. But it reports an error:
> "stderr| /opt/SUNWstc-nicdrv/tools/ftp/sparcv9/ftp.auto: test: unknown 
> operator 0
> stderr| /opt/SUNWstc-nicdrv/tools/ftp/sparcv9/ftp.auto: test: unknown 
> operator 0"
> and skipped to 1g file ftp test. It never happened in other NICDrv version 
> before, but happened a copule times recently on Sparc servers. I am wondering 
> if this is test suite issue or my driver issue?

If I had to guess, it'd be this questionable line of code:

http://cvs.opensolaris.org/source/xref/test/ontest-stc2/src/suites/net/nicdrv/tools/ftp/ftp.auto.sh#241

                while [ `cat ${STF_RESULTS}/tmp/stopfile$$` -ne 1 -a
$rem_time -gt 0 ]; do

If that "stopfile" contains more than just a single decimal number, then
the test above is going to fly to pieces.  Your results are consistent
with contents something like:

        0
        0

... and given the code at line 76 (which appends to the stopfile rather
than overwriting it), this is probably the cause.

It looks to me like this script (at least) needs a bit of a code review.

-- 
James Carlson         42.703N 71.076W         <[email protected]>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to