Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 40658 invoked by uid 500); 5 Sep 2001 17:45:35 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 40629 invoked from network); 5 Sep 2001 17:45:34 -0000 X-Authentication-Warning: slippy.rat: gbenson owned process doing -bs Date: Wed, 5 Sep 2001 18:45:30 +0100 (BST) From: Gary Benson Sender: To: Subject: Re: TestConfig->new deletes vhosts (et al) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 5 Sep 2001, Doug MacEachern wrote: > On Mon, 3 Sep 2001, Gary Benson wrote: > > > > > Hi all, > > > > I'm getting problems with tests passing if I run: > > > > % perl t/TEST > > > > but failing if I run: > > > > % perl t/TEST -start-httpd > > % perl t/TEST -run-tests > > % perl t/TEST -stop-httpd > > works fine for me. > > > It seems that this chunk of code, from TestConfig.pm (~ line 140), is the > > culprit. It deletes the section of the config file that contains the > > virtual host stuff, which breaks the tests which need them. > > > > #regenerating config, so forget old > > if ($args->{save}) { > > for (qw(vhosts inherit_config modules inc)) { > > delete $thaw->{$_} if exists $thaw->{$_}; > > } > > } > > > > Does anyone know _why_ it deletes the vhosts stuff -- is it required by > > something else, or was it once required but not any more? > > that should only happen when configuration is being generated, in which > case the vhosts will be rediscovered. things like apxs are canidates for > reuse from the old config. otherwise, cached config is used and that bit > is not run. i wonder if you have something in your shell env that is > triggering reconfiguration, such as: > my %passenv = map { $_,1 } qw{ > APXS APACHE APACHE_GROUP APACHE_USER APACHE_PORT > }; APACHE_PORT is set. Should I explicitly set APACHE_PORT _only_ for t/TEST -start-httpd? Eg: % APACHE_PORT=whatever t/TEST -start-httpd % perl t/TEST -run-tests % perl t/TEST -stop-httpd But looking more closely, I see that there is a -port option. Perhaps that makes more sense... Okay, thanks for that, Gary [ Gary Benson, Red Hat Europe ][ gbenson@redhat.com ][ GnuPG 60E8793A ]