Author: gnichols
Date: 2010-06-18 00:04:39 +0000 (Fri, 18 Jun 2010)
New Revision: 560
Modified:
trunk/v7/daemon.py
Log:
568518 - FEAT: add a BMC fencing testing
Modified: trunk/v7/daemon.py
===================================================================
--- trunk/v7/daemon.py 2010-06-16 21:50:35 UTC (rev 559)
+++ trunk/v7/daemon.py 2010-06-18 00:04:39 UTC (rev 560)
@@ -22,6 +22,7 @@
from v7.command import Command, V7CommandException
from v7.test import Test
from v7.planner import Planner
+from v7.log import Log
class V7Daemon(Controller):
@@ -135,7 +136,11 @@
try:
test = self.planner.getTest(args["test"])
log = self.openLogFile(args, "w")
- test.runOnServer(args, log)
+ log.write("<output>\n")
+ result = Constants.FAIL
+ if test.runOnServer(args, log):
+ result = Constants.PASS
+ log.write("<summary>%s</summary>\n</output>\n" %
result)
log.close()
except KeyError:
print "Error: test not found"
Show replies by date