Author: gnichols
Date: 2010-03-04 19:05:19 +0000 (Thu, 04 Mar 2010)
New Revision: 409
Modified:
trunk/tests/profiler/profiler.py
Log:
555895 - FEAT: results.xml could divide out the various sub tests.
Modified: trunk/tests/profiler/profiler.py
===================================================================
--- trunk/tests/profiler/profiler.py 2010-03-04 19:04:51 UTC (rev 408)
+++ trunk/tests/profiler/profiler.py 2010-03-04 19:05:19 UTC (rev 409)
@@ -203,11 +203,11 @@
PASSED = 0
try:
self.getLinuxImage()
- if not self.resetOProfile():
+ if not self.runSubTest(self.resetOProfile, "Reset"):
return FAILED
- if not self.startDaemon():
+ if not self.runSubTest(self.startDaemon, "Start Daemon"):
return FAILED
- if not self.startOProfile():
+ if not self.runSubTest(self.startOProfile, "Start OProfile"):
return FAILED
self.getOProfileVersion()
if not self.report() and not self.forceTimerConf():
@@ -219,6 +219,7 @@
except Exception, e:
print "Error: "
print e
+ self.closeOutput()
return FAILED
# reset - ignore if it fails
Show replies by date