Closedown
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user