Python test suit /tmp removal

dragosi at web.de dragosi at web.de
Thu Aug 9 21:07:56 PDT 2007


> One should *never* run a package test suite as the root user.
> In fact, one should *never* run any command as the root user
> if he is not 100% confident what the result will be.

Yeah, sorry, I didn't mean to say that I ignored the warnings in the
book about that.
And I admit that I quite consciously built the package as the root user.

I merely found it strange that a test suite would include a recursive
rm for the /tmp directory.

> Why? We already say to build and test the packages as an unprivileged
> user and only become 'root' for the installation tasks (which are
> individually identified). I look at it like this:
> 
> We already say "don't do that". Should we place a warning in the
> book to say "We really mean it, don't do that!"?
> 
> :-)

>From that point of view, I agree. I just never expected someone to write
a test that would remove /tmp, is all.
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066




More information about the blfs-dev mailing list