Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 43866
Status: rejected
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: morten.bjornsvik [...] experian-da.no
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: TAP::Parser should support for user and group
Date: Thu, 5 Mar 2009 10:22:24 +0100
To: <bug-Test-Harness [...] rt.cpan.org>
From: Morten Bjørnsvik <morten.bjornsvik [...] experian-da.no>
Hi We have some SSL related tests that has to run as a specific user,group because of the certificate. Would be nice if that feature could be included in the constructor. aka: my $parser = TAP::Parser->new( { source => $file, user => $user, group => $group } ); Thanks -- Morten Bjoernsvik, Experian Decision Analytics AS, Oslo, Norway
Subject: Re: [rt.cpan.org #43866] TAP::Parser should support for user and group
Date: Thu, 05 Mar 2009 02:25:29 -0800
To: bug-Test-Harness [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Morten Bjørnsvik via RT wrote: Show quoted text
> We have some SSL related tests that has to run as a specific user,group because of the certificate. > Would be nice if that feature could be included in the constructor. > > aka: > my $parser = TAP::Parser->new( { source => $file, user => $user, group => $group } );
Why does this need to be done inside TAP::Parser? Just do it yourself. { local $> = $user_id; local $) = $group_id; my $parser = TAP::Parser->new({ source => $file }); } This assumes the process is run by a superuser, but otherwise how would TAP::Parser run as a different user? -- 151. The proper way to report to my Commander is "Specialist Schwarz, reporting as ordered, Sir" not "You can't prove a thing!" -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/
Subject: RE: [rt.cpan.org #43866] TAP::Parser should support for user and group
Date: Thu, 5 Mar 2009 11:40:28 +0100
To: <bug-Test-Harness [...] rt.cpan.org>
From: Morten Bjørnsvik <morten.bjornsvik [...] experian-da.no>
Show quoted text
-----Original Message----- |From: Michael G Schwern via RT [mailto:bug-Test-Harness@rt.cpan.org] |Sent: 5. mars 2009 11:26 |To: Morten Bjørnsvik |Subject: Re: [rt.cpan.org #43866] TAP::Parser should support for user and group | |<URL: http://rt.cpan.org/Ticket/Display.html?id=43866 > | |Morten Bjørnsvik via RT wrote: |> We have some SSL related tests that has to run as a specific user,group because of the certificate. |> Would be nice if that feature could be included in the constructor. |> |> aka: |> my $parser = TAP::Parser->new( { source => $file, user => $user, group |> => $group } ); | |Why does this need to be done inside TAP::Parser? Just do it yourself. | |{ | local $> = $user_id; | local $) = $group_id; | my $parser = TAP::Parser->new({ source => $file }); } | |This assumes the process is run by a superuser, but otherwise how would TAP::Parser run as a different user? Thanks Michael If this works it is great, I'll run the test script as root and add the logic for testing, then report back. Nice if this could be added to the perldoc, for us dummies. Thanks again for fast response. -- MortenB
I guess that covers it :)