From 12e70f41dc036763e6f0f99448cf9e31d8d26b3b Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 4 Sep 2015 15:41:12 +0200 Subject: [PATCH] Closedown --- script/local.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/script/local.py b/script/local.py index b9e5761..4ee9cc0 100644 --- a/script/local.py +++ b/script/local.py @@ -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)