If auto_nicdrv is forcing you to run stf_configure as root, then there's a bug in auto_nicdrv. STF explicitly states that test suite configuration and execution must be done as a normal (non- root) user. STF takes care of switching uid to root if the test suite requires it.
-UVR. Tom Chen wrote on Wed Mar 25 2009 13:48:41 GMT-0700 (PDT): > I think the reason why i can not run stf_configure at normal user mode > is that, I installed auto_nicdrv that doesn't require building from > source code. When I install the test suite at normal user mode, it > doesn't work. According to the AUTO_NICDRV_README, it must be installed > at root mode. That's why I can not run stf_configure at normal user mode. > http://www.opensolaris.org/os/community/device_drivers/AUTO_NICDRV_README > When i invoke stf_configure,it doesn't invoke any prompt. > > #stf_configure > > RUNNING CONFIGURE HASE IN /opt/SUNWstc-stf..... > > Setting up config variables... > SUMMARY: > No config phase failures detected > # > > Could you tell me how to change configure for auto-nicdrv users? > > Tom > > ----- Original Message ----- From: "UVR" <uvr+opensolaris at sun.com> > To: "Tom Chen" <chentom60 at hotmail.com> > Cc: <testing-discuss at opensolaris.org> > Sent: Saturday, February 28, 2009 9:48 PM > Subject: Re: [testing-discuss] How to change NICDrv configuration > correctly? > > >> >>> Tom Chen wrote on Sat Feb 28 2009 08:40:12 GMT-0800 (PST): >>>> >>>> I modified /opt/SUNWstc-nicdrv/config.vars fiel, changed client's IP >>>> address and DRIVER_SPEED=${DRIVER_SPEED:-10G}. Then I run >>>> #stf_configure >> >> Sorry for the self-reply, but I realized I forgot to mention >> that >> >> (a) Modifying the file in the test suite's directory is not >> necessary (and, in general, not a supported method of >> interacting with STF-based test suites) >> >> (b) It would appear from "#stf_configure" that you're running >> STF as the root user. This will most probably lead to >> errors. The correct way to interact with STF is as a >> "normal" (i.e., non-root) user. >> >> When you invoke stf_configure, it will prompt you to >> enter the root password. After that, STF will take care >> of running required programs with 'root' privileges. >> >> -UVR. >>
