Closedown

This commit is contained in:
boccioli_m
2017-10-18 09:17:07 +02:00
parent 4b7dbbf2ec
commit e3a36b6459
3 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,8 @@ class TestingTool:
self.log('**** TEST PASSED ****')
else:
self.log('**** TEST FAILED ****')
self.log('Return message: ' + returnString)
if returnString != '':
self.log(returnString)
ret = [self.testPath, self.deviceName, returnString, testPassed]
set_return( ret)

View File

@@ -1,5 +1,5 @@
#TestingList for pshell: configuration properties
#Tue Oct 17 16:30:53 CEST 2017
#Wed Oct 18 09:16:48 CEST 2017
customPanel=
showEnabledTestsOnly=true
listFilter=rps-test

View File

@@ -88,7 +88,7 @@ def startTest(testName, DEVICE, params):
ilk.masterReset()
ilk.setInterlockMode(mode)
# set up connection to channels. "type" of data can be "d" (= double), "l" (= long).
rpsChannel = Channel(channel , type='d')
#rpsChannel = Channel(channel , type='d')
except:
import traceback
# prepare return information: return text:
@@ -100,13 +100,12 @@ def startTest(testName, DEVICE, params):
return
# Closing channels: all channels that were opened with Channel() must be closed before exit:
rpsChannel.close()
#rpsChannel.close()
# IMPORTANT: if the test was successful, write the report into the variables ret and success.
# for example, write the following:
ret = "Example - Test successful, here some detail: ..."
ret = ""
success = True
test.sendFeedback(ret, success)
# once the test is finished, no need to do anything. The code below yours will do the rest.
################ End of Example ##########