Closedown

This commit is contained in:
boccioli_m
2015-09-02 10:39:05 +02:00
parent b57d868543
commit 3936d45b5e
2 changed files with 13 additions and 4 deletions

View File

@@ -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')

View File

@@ -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
#########################################