From: Ian Jackson Subject: [OSSTEST PATCH 20/32] cr-ensure-disk-space: Take argument for what to clean Date: Tue, 24 Mar 2015 19:02:43 +0000 Message-ID: <1427223775-8592-21-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU7D-000191-GO for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:51 +0000 In-Reply-To: <1427223775-8592-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 Currently always "LogsPublish" (so no functional change). Signed-off-by: Ian Jackson --- cr-ensure-disk-space | 7 +++++-- cri-args-hostlists | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cr-ensure-disk-space b/cr-ensure-disk-space index af8efe6..884be26 100755 --- a/cr-ensure-disk-space +++ b/cr-ensure-disk-space @@ -36,7 +36,9 @@ while (@ARGV && $ARGV[0] =~ m/^\-/) { } } -die if @ARGV; +die unless @ARGV==1; + +our ($cfgbase) = @ARGV; csreadconfig(); @@ -50,7 +52,8 @@ my $chkq= $dbh_tests->prepare("SELECT * FROM flights WHERE flight=?"); our @flights; our @sshopts= qw(-o batchmode=yes); -$c{LogsPublish} =~ m/\:/ or die "$c{LogsPublish} ?"; +my $cfgvalue = $c{$cfgbase}; +$cgvvalue =~ m/\:/ or die "$c{LogsPublish} ?"; my ($pubhost, $pubdir) = ($`,$'); #'; sub ontarget ($) { diff --git a/cri-args-hostlists b/cri-args-hostlists index 2ee0b7b..11f01bd 100644 --- a/cri-args-hostlists +++ b/cri-args-hostlists @@ -74,7 +74,7 @@ execute_flight () { rm -f abort check_stop_core '' - ./cr-ensure-disk-space + ./cr-ensure-disk-space LogsPublish export OSSTEST_RESOURCE_PREINFO="[$branch $2]" -- 1.7.10.4