On Fri 21 Aug 2009, Torsten Foertsch wrote:
> I think the whole reconfig thing should be skipped
> with -run-tests.
How about the enclosed patch? I don't know enough about AT to judge. So,
please comment.
Torsten
--
Need professional mod_perl support?
Just hire me: [email protected]
Index: lib/Apache/TestRun.pm
===================================================================
--- lib/Apache/TestRun.pm (revision 806475)
+++ lib/Apache/TestRun.pm (working copy)
@@ -719,9 +719,11 @@
$self->opt_clean(1);
}
- # if configure() fails for some reason before it has flushed the
- # config to a file, save it so -clean will be able to clean
- unless ($self->{opts}->{clean}) {
+ # If configure() fails for some reason before it has flushed the
+ # config to a file, save it so -clean will be able to clean.
+ # Further, avoid configure() if -run-tests is given. Configuration
+ # has been done by a separate -start-httpd call before.
+ unless ($self->{opts}->{clean} or $self->{opts}->{'run-tests'}) {
eval { $self->configure };
if ($@) {
error "configure() has failed:\n$@";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]