Closedown
This commit is contained in:
@@ -72,8 +72,10 @@ def startTest(testName, DEVICE, params):
|
||||
test.printParams()
|
||||
# If present, use the parameters here below for your test script.
|
||||
# These parameters were automatically generated: you might need to change the casting.
|
||||
mode = string(test.getParam('mode')) ; expectedVal14 = int(test.getParam('expectedVal14')) ; expectedVal58 = int(test.getParam('expectedVal58')) ; setGetDelay = float(test.getParam('setGetDelay')) ;
|
||||
mode = (test.getParam('mode')) ; expectedVal14 = (test.getParam('expectedVal14')) ; expectedVal58 = (test.getParam('expectedVal58')) ; setGetDelay = (test.getParam('setGetDelay')) ;
|
||||
test.log("mode: " + mode + " expectedVal14: " +expectedVal14)
|
||||
except:
|
||||
import traceback
|
||||
# test failed, write the report into the variables ret and success and send feedback:
|
||||
ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()
|
||||
success = False
|
||||
@@ -111,6 +113,7 @@ def startTest(testName, DEVICE, params):
|
||||
pv_motor_val = Channel(test.getDeviceName() + ':IST:1' , type='d')
|
||||
pv_motor_com = Channel(test.getDeviceName() + ':COM:2' , type='d')
|
||||
except:
|
||||
import traceback
|
||||
# prepare return information: return text:
|
||||
ret = 'Unable to create channel - ' + traceback.format_exc()
|
||||
# prepare return information: return success:
|
||||
|
||||
Reference in New Issue
Block a user