From: Ian Jackson Subject: [OSSTEST PATCH 12/13] Planner: ms-queuedaemon: Make report-plan take output walker name Date: Wed, 2 Sep 2015 16:45:18 +0100 Message-ID: <1441208719-31336-13-git-send-email-ian.jackson@eu.citrix.com> References: <1441208719-31336-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 1ZXAJZ-00026q-47 for xen-devel@lists.xenproject.org; Wed, 02 Sep 2015 15:51:09 +0000 In-Reply-To: <1441208719-31336-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 We are going to want to process each walker's data into reports which are not necessarily named after the same walker. No functional change as yet. Signed-off-by: Ian Jackson --- ms-queuedaemon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 0158048..d2aabf4 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -138,7 +138,7 @@ proc runneeded-perhaps-start {} { if {![llength $queue]} { plan-reset plan - report-plan plan + report-plan plan plan return } @@ -174,7 +174,7 @@ proc runneeded-perhaps-start {} { proc queuerun-finished/plan {} { runneeded-ensure-will 0 - report-plan plan + report-plan plan plan } proc runneeded-ensure-polling {} { @@ -272,10 +272,10 @@ proc queuerun-perhaps-step {w} { notify-to-think $w $thinking } -proc report-plan {w} { +proc report-plan {w wo} { global c if {[catch { - set outputfile "$c(WebspaceFile)/resource-$w.html" + set outputfile "$c(WebspaceFile)/resource-$wo.html" exec ./ms-planner -w$w show-html > $outputfile } emsg]} { log "INTERNAL ERROR showing $w html: $emsg" -- 1.7.10.4