You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2005/01/21 20:18:40 UTC

file ownership tally in t/REPORT

hi all...

this small patch gives us an ownership tally in t/REPORT.  the result looks
like this if I run the tests as root.

2. Used Components and their Configuration:

*** this report run as geoff (uid 500)

*** file ownership tally:
      geoff: 5692 files
      nobody: 2897 files
      root: 12 files

*** mod_perl version 1.999021

under normal circumstances I get

*** file ownership tally:
      geoff: 8600 files
      root: 1 files

anyway, I'm not sure if it will actually help diagnose things, but it might
be useful someday...

thoughts?

--Geoff

Re: file ownership tally in t/REPORT

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> hi all...
> 
> this small patch gives us an ownership tally in t/REPORT.  the result looks
> like this if I run the tests as root.
> 
> 2. Used Components and their Configuration:
> 
> *** this report run as geoff (uid 500)
> 
> *** file ownership tally:
>       geoff: 5692 files
>       nobody: 2897 files
>       root: 12 files
> 
> *** mod_perl version 1.999021
> 
> under normal circumstances I get
> 
> *** file ownership tally:
>       geoff: 8600 files
>       root: 1 files
> 
> anyway, I'm not sure if it will actually help diagnose things, but it might
> be useful someday...

More information doesn't necessarily help to improve diagnostics. May be 
you could explain why did you have to write this code? I fail to see how 
this info can be helpful. Especially the fact which user has run the 
report, since it doesn't give any indication of what user was used to run 
the test suite.

It'd be much more useful to have A-T record that information during the 
test suite run, and than have the reporting tool, use that information.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org