From: Ian Jackson Subject: Re: [OSSTEST PATCH 11/11] mg-schema-test-database: Sort out daemons; provide `daemons' subcommand Date: Mon, 7 Dec 2015 15:16:39 +0000 Message-ID: <22117.41687.471745.49386@mariner.uk.xensource.com> References: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> <1449257734-26860-12-git-send-email-ian.jackson@eu.citrix.com> <1449483496.29724.42.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a5xWy-0004oT-K9 for xen-devel@lists.xenproject.org; Mon, 07 Dec 2015 15:16:48 +0000 In-Reply-To: <1449483496.29724.42.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 11/11] mg-schema-test-database: Sort out daemons; provide `daemons' subcommand"): > On Fri, 2015-12-04 at 19:35 +0000, Ian Jackson wrote: > > We arrange for the test configuration to look for the daemons on a > > different host and port, and we provide a convenient way to run such a > > pair of daemons. > > I was missing where *Daemon{Host,Port} were set here, it turns out to be in > patch 9, which might be a bisection issue? I'm not sure we care for this > new code. Indeed that hunk is misplaced. > It also occurred to me while reading this that I didn't know what to do > with OSSTEST_CONFIG here, I've not spotted in patch 9 where withtest() > behaves in the obvious way, but it might be worth mentioning explicitly in > the comments that the script DTRT and it is never(/rarely) necessary to set > OSSTEST_CONFIG=local-config.test-database_SUFFIX yourself. After you have run mg-schema-test-database create, you want to set OSSTEST_CONFIG somehow. Otherwise everything still runs against the original database. I do have a patch (unposted, because I thought better of it) to make the config file reader automatically find and slurp any files called local-config.something, after (and thus overriding OSSTEST_CONFIG0. Do you think that would be a good idea ? It seems a bit hairy to me. Ian.