[pkg-discuss] 1147 test harness needs enhancements to run as non-root, and on Read-Only FS

John Sonnenschein John.Sonnenschein at Sun.COM
Tue Sep 15 15:38:25 PDT 2009


johansen at sun.com wrote:
> On Tue, Sep 15, 2009 at 05:17:27PM -0500, Shawn Walker wrote:
>   
>> John Sonnenschein wrote:
>>     
>>> Thoughts?
>>>
>>> http://cr.opensolaris.org/~error404/1147/
>>>       
>> I'd prefer '@privileged' over '@RunAsRoot'.
>>     
>
> If we're going to go that route, it would make more sense to actually
> detail what privileges the test case needs in order to complete its
> task.  Since decorators don't take arguments

Sure they do, @Privileged(['net.privaddr']) is entirely possible. I 
actually like the idea of using privileges(5) to run the tests as 
they're supposed to be so I'm going to look in to that.

-JohnS



More information about the pkg-discuss mailing list