Closedown
This commit is contained in:
+5
-3
@@ -27,15 +27,17 @@ class TestingTool:
|
||||
return None
|
||||
|
||||
#print/log information
|
||||
#test = the string to be printed/logged
|
||||
#text = the string to be printed/logged
|
||||
def log(self, text):
|
||||
import time
|
||||
time.ctime()
|
||||
now = time.strftime('%Y.%m.%d %H:%M:%S')
|
||||
logText = self.deviceName + ' - ' + self.testName + ': ' + str(text)
|
||||
print now + ' ' + logText
|
||||
log(logText)
|
||||
|
||||
try:
|
||||
log(logText)
|
||||
except:
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user