Closedown

This commit is contained in:
boccioli_m
2015-09-04 15:41:12 +02:00
parent e3c6774255
commit 12e70f41dc

View File

@@ -37,21 +37,23 @@ class TestingTool:
try:
log(logText)
except:
#cannot write log. maybe busy? Wait and retry
time.sleep(1)
try:
log(logText)
except:
#cannot write log
print now + ' ' + self.deviceName + ' - ' + self.testName + ': ' + 'cannot write Log in Data'
#prepare and send feedback to calling tool
# returnString = the string containing info on the test result
# testPassed = true if the test was successful, false if test had a problem
def sendFeedback(self, returnString, testPassed):
self.log('End of test. Result:')
self.log('Device: ' + self.deviceName)
self.log('Test name: ' + self.testName)
self.log('Test path: ' + self.testPath)
self.log('Test passed: ' + str(testPassed))
self.log('Return string: ' + returnString)
self.log('Device: ' + self.deviceName)
#self.log('Test name: ' + self.testName)
#self.log('Test path: ' + self.testPath)
self.log('Test passed: ' + str(testPassed))
self.log('Return message: ' + returnString)
ret = [self.testPath, self.deviceName, returnString, testPassed]
set_return( ret)