From: Ian Jackson Subject: [OSSTEST PATCH 2/2] config: Computed defaults for Logs and Results Date: Fri, 19 Jun 2015 13:38:45 +0100 Message-ID: <1434717525-11201-2-git-send-email-ian.jackson@eu.citrix.com> References: <1434717525-11201-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5vZX-0005vV-Ne for xen-devel@lists.xenproject.org; Fri, 19 Jun 2015 12:39:03 +0000 In-Reply-To: <1434717525-11201-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 Signed-off-by: Ian Jackson --- Osstest.pm | 9 +++++++-- production-config | 2 -- production-config-cambridge | 2 -- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Osstest.pm b/Osstest.pm index fc46487..c89c941 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -61,8 +61,6 @@ our %c = qw( HostDB Static Images images - Logs logs - Results results DebianSuite wheezy DebianMirrorSubpath debian @@ -214,6 +212,13 @@ sub readglobalconfig () { $c{DebianMirrorHost} ||= 'ftp.debian.org' if $c{DebianMirrorProxy}; + my $pubbaseprefix = $c{PubBaseDir} ? "$c{PubBaseDir}/" : ""; + foreach my $l (qw(logs results)) { + my $u = ucfirst $l; + next if defined $c{$u}; + $c{"${u}"} = "$pubbaseprefix$l"; + } + $c{Stash} //= $c{Logs}; } diff --git a/production-config b/production-config index b17bd66..bcb351e 100644 --- a/production-config +++ b/production-config @@ -35,9 +35,7 @@ QueueDaemonHost osstest ExecutiveDbnamePat dbname=osstestdb;host=db Images /home/logs/images -Logs /home/logs/logs -Results /home/logs/results PubBaseDir /home/logs OverlayLocal /home/osstest/overlay-local diff --git a/production-config-cambridge b/production-config-cambridge index 693690b..7b54a98 100644 --- a/production-config-cambridge +++ b/production-config-cambridge @@ -33,9 +33,7 @@ NetNameservers 10.80.248.2 10.80.16.28 10.80.16.67 Timezone Europe/London Images /home/xc_osstest/images -Logs /home/xc_osstest/logs -Results /home/xc_osstest/results PubBaseDir /home/xc_osstest OverlayLocal /export/home/osstest/overlay-local -- 1.7.10.4