]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
Planner: ms-queuedaemon: Make report-plan take output walker name
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 1 Sep 2015 18:18:35 +0000 (19:18 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 8 Sep 2015 10:29:20 +0000 (11:29 +0100)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ms-queuedaemon

index 1fe555de76bdcb84debd5db66eb348a709b9dc73..811f0ee6c0ef40443647855945b15165f3d6733a 100755 (executable)
@@ -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"