Author: gnichols
Date: 2011-01-17 20:54:47 +0000 (Mon, 17 Jan 2011)
New Revision: 712
Modified:
trunk/v7/hardwaretest.py
Log:
665272 - Why so many tests lost their output?
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2011-01-17 20:48:21 UTC (rev 711)
+++ trunk/v7/hardwaretest.py 2011-01-17 20:54:47 UTC (rev 712)
@@ -1044,7 +1044,9 @@
def saveOutput(self, run, retval, outputFilePath):
print "saveOutput: %s" % outputFilePath
run.setReturnValue(retval)
- run.setTestOutput(outputFilePath)
+ if not run.setTestOutput(outputFilePath):
+ print "Error: could not save test logs, marking as failed."
+ run.setSummary(Constants.FAIL)
def _getTestsFromOptions(self):
if self.options.device:
Show replies by date