From: Ian Jackson Subject: [OSSTEST PATCH 10/11] mg-schema-test-database: Move setting of test_cfg_setting to dbname Date: Fri, 4 Dec 2015 19:35:33 +0000 Message-ID: <1449257734-26860-11-git-send-email-ian.jackson@eu.citrix.com> References: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a4w8y-00063W-EN for xen-devel@lists.xenproject.org; Fri, 04 Dec 2015 19:35:48 +0000 In-Reply-To: <1449257734-26860-1-git-send-email-ian.jackson@eu.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: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This will makes it available to a wider subset of the script, which is going to be important in a moment. No functional change. Signed-off-by: Ian Jackson --- mg-schema-test-database | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mg-schema-test-database b/mg-schema-test-database index 64acdcf..fec7f20 100755 --- a/mg-schema-test-database +++ b/mg-schema-test-database @@ -56,6 +56,12 @@ dbname () { dbname="${maindbname}_test$suffix" t="tmp/testdb$suffix" tcfg=local-config.test-database$suffix + + test_cfg_setting="$(perl -we ' + use Osstest; + print globalconfigfiles() or die $!; + '):$tcfg" + } psql_query_internal () { @@ -260,12 +266,6 @@ QueueDaemonPort ${ctrlports#*,} END mv -f $tcfg.tmp $tcfg - # this makes `withtest' work - test_cfg_setting="$(perl -we ' - use Osstest; - print globalconfigfiles() or die $!; - '):$tcfg" - # Extract the schema for reference $(get_pgdump_cmd) -s -O -x >$t.schema -- 1.7.10.4