Closedown

This commit is contained in:
boccioli_m
2015-09-02 10:07:38 +02:00
parent 701d099dc0
commit 9e8b6f89a5
3 changed files with 16 additions and 22 deletions

Binary file not shown.

View File

@@ -1,13 +1,23 @@
global print_log, sendFeedback, inspect
global print_log, sendFeedback, sys, inspect, os, traceback
import sys, inspect, os, traceback
def print_log(testName, DEVICE, text):
time.ctime()
now = time.strftime('%Y.%m.%d %H:%M:%S')
print now + ' ' + DEVICE + ' - ' + testName + ': ' + str(text)
log( now + ' ' + DEVICE + ' - ' + testName + ': ' + str(text))
#prepare and send feedback to calling tool
def sendFeedback(testPath, testName, DEVICE, returnString, testPassed):
print_log(testName, DEVICE, 'End of test. Result:')
print_log(testName, DEVICE, 'Device: ' + DEVICE)
print_log(testName, DEVICE, 'Test name: ' + testName)
print_log(testName, DEVICE, 'Test path: ' + testPath)
print_log(testName, DEVICE, 'Test passed: ' + str(testPassed))
print_log(testName, DEVICE, 'Return string: ' + returnString)
ret = [testPath, DEVICE, returnString, testPassed]
set_return(ret)
pippo = 'pippo'
def print_pio():
print 'pio'
print 'piopio'

View File

@@ -1,24 +1,8 @@
#########################################
###### DO NOT MODIFY THE CODE BELOW #####
#########################################
global print_log, sendFeedback, sys, inspect, os, traceback
import sys, inspect, os, traceback
def print_log(testName, DEVICE, text):
time.ctime()
now = time.strftime('%Y.%m.%d %H:%M:%S')
print now + ' ' + DEVICE + ' - ' + testName + ': ' + str(text)
#prepare and send feedback to calling tool
def sendFeedback(testPath, testName, DEVICE, returnString, testPassed):
print_log(testName, DEVICE, 'End of test. Result:')
print_log(testName, DEVICE, 'Device: ' + DEVICE)
print_log(testName, DEVICE, 'Test name: ' + testName)
print_log(testName, DEVICE, 'Test path: ' + testPath)
print_log(testName, DEVICE, 'Test passed: ' + str(testPassed))
print_log(testName, DEVICE, 'Return string: ' + returnString)
ret = [testPath, DEVICE, returnString, testPassed]
set_return(ret)
global testcommons
import testcommons
def startTest(testName, DEVICE, params):
#get the path of this script
@@ -39,7 +23,7 @@ def startTest(testName, DEVICE, params):
scan = ManualScan(['time'], ['SetV', 'ActualV', 'ActualI'])
scan.setPlotName(plotName)
scan.start()
testcommons.print_pio()
try:
#Creating channels: dimension 1
#Ramp rate