From: Ian Jackson Subject: [OSSTEST PATCH 23/32] cr-ensure-disk-space: Operate locally entirely separately. Date: Tue, 24 Mar 2015 19:02:46 +0000 Message-ID: <1427223775-8592-24-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU7D-00018P-2o 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 Run cr-ensure-disk-space separately for local and remote directories. Ie, do the local deletion in its own run (so removing the anomalous separate invocation). This makes little difference if the two disks are of roughly similar sizes. Signed-off-by: Ian Jackson --- cr-ensure-disk-space | 4 ---- cri-args-hostlists | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cr-ensure-disk-space b/cr-ensure-disk-space index 1defa6a..1064590 100755 --- a/cr-ensure-disk-space +++ b/cr-ensure-disk-space @@ -45,7 +45,6 @@ csreadconfig(); open LOCK, "> $c{GlobalLockDir}/publish-lock" or die $!; flock LOCK, LOCK_EX or die $!; -chdir $c{Logs} or die $c{Logs}; $|=1; my $chkq= $dbh_tests->prepare("SELECT * FROM flights WHERE flight=?"); @@ -121,9 +120,6 @@ for (;;) { rm -rf $flight END - printf "local.."; - $spawn->(qw(rm -rf), $flight); - printf "done.\n"; } diff --git a/cri-args-hostlists b/cri-args-hostlists index 11f01bd..04cd6be 100644 --- a/cri-args-hostlists +++ b/cri-args-hostlists @@ -74,6 +74,7 @@ execute_flight () { rm -f abort check_stop_core '' + ./cr-ensure-disk-space Logs ./cr-ensure-disk-space LogsPublish export OSSTEST_RESOURCE_PREINFO="[$branch $2]" -- 1.7.10.4