Closedown
This commit is contained in:
@@ -4,7 +4,16 @@ import sys, inspect, os, traceback
|
||||
class TestingTool:
|
||||
|
||||
pippo = 'pippo'
|
||||
def print_log(self, testName, DEVICE, text):
|
||||
deviceName = ''
|
||||
testName = ''
|
||||
testPath = ''
|
||||
|
||||
def __init__(self, testName, testPath, DEVICE):
|
||||
self.deviceName = DEVICE
|
||||
self.testName = testName
|
||||
self.testPath = testPath
|
||||
|
||||
def print_log(self, text):
|
||||
import time
|
||||
time.ctime()
|
||||
now = time.strftime('%Y.%m.%d %H:%M:%S')
|
||||
|
||||
@@ -13,14 +13,14 @@ def sendFeedback(testPath, testName, DEVICE, returnString, testPassed):
|
||||
|
||||
def startTest(testName, DEVICE, params):
|
||||
#get the path of this script
|
||||
testTool = testcommons.TestingTool()
|
||||
testTool.print_pio()
|
||||
test = testcommons.TestingTool(testName, DEVICE)
|
||||
test.print_pio()
|
||||
|
||||
import inspect
|
||||
testPath = inspect.getfile(inspect.currentframe())
|
||||
#by default, failed
|
||||
ret = 'Test failed'
|
||||
status = False
|
||||
status = False
|
||||
#plot name to be given to the scan. Use: scan.setPlotName(plotName)
|
||||
plotName = DEVICE + ' - ' + testName
|
||||
#########################################
|
||||
|
||||
Reference in New Issue
Block a user