Closedown

This commit is contained in:
boccioli_m
2017-08-29 11:25:49 +02:00
parent 884ba08f71
commit 8dc903b638
3 changed files with 6 additions and 4 deletions

View File

@@ -95,9 +95,9 @@ class TestingTool:
columnsFormat = '{0:10} {1:10} {2}'
self.log(columnsFormat.format("Parameter", "Value", "Description"))
for param in self.testParams:
self.log(columnsFormat.format(self.testParams[param],
self.testParams[param].value,
self.testParams[param].description))
self.log(columnsFormat.format(param,
param.value,
param.description))
def sendFeedback(self, returnString, testPassed):

View File

@@ -1,5 +1,5 @@
#TestingList for pshell: configuration properties
#Tue Aug 29 11:22:40 CEST 2017
#Tue Aug 29 11:25:02 CEST 2017
customPanel=
showEnabledTestsOnly=true
listFilter=test-bx84

View File

@@ -76,6 +76,7 @@ def startTest(testName, DEVICE, params):
delay = float(test.getParam('delay')) ; centre = float(test.getParam('centre')) ; moveAround = float(test.getParam('moveAround')) ; steps = float(test.getParam('steps')) ;
except:
# test failed, write the report into the variables ret and success and send feedback:
import traceback
ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()
success = False
test.sendFeedback(ret, success)
@@ -121,6 +122,7 @@ def startTest(testName, DEVICE, params):
pv_motor_val = Channel(test.getDeviceName() + ':ai' , type='d')
except:
# prepare return information: return text:
import traceback
ret = 'Unable to create channel - ' + traceback.format_exc()
# prepare return information: return success:
success = False