diff --git a/script/local.py b/script/local.py index ac59c2c..1eb106c 100644 --- a/script/local.py +++ b/script/local.py @@ -9,7 +9,6 @@ # The code below is necessary to run the Testing List plug-in: global print_log, sendFeedback, sys, inspect, os, traceback import sys, inspect, os, traceback -import pio class TestingTool: """ @@ -20,9 +19,6 @@ class TestingTool: Init class with test data """ self.deviceName = deviceName - self.log('arriva pio') - p = pio() - self.log('passato pio') self.testName = testName self.testPath = testPath self.testParams = testParams diff --git a/script/pio.py b/script/pio.py deleted file mode 100644 index bc73785..0000000 --- a/script/pio.py +++ /dev/null @@ -1,20 +0,0 @@ -################################################################################################### -# Deployment specific global definitions - executed after startup.py -################################################################################################### - -#Uncomment this line to create the simulated devices needed to the tutorial scripts. -#run("tutorial/devices") - - -# The code below is necessary to run the Testing List plug-in: -global print_log, sendFeedback, sys, inspect, os, traceback -import sys, inspect, os, traceback - -class pio: - def __init__(self): - self.log('ecco pio') - - def log(self, text): - print str(text) - - diff --git a/script/tests/tests/sad/rpstry/rpstry.py b/script/tests/tests/sad/rpstry/rpstry.py index bd6f01c..3bd81ca 100644 --- a/script/tests/tests/sad/rpstry/rpstry.py +++ b/script/tests/tests/sad/rpstry/rpstry.py @@ -6,6 +6,7 @@ global sys, inspect, os, traceback import sys, inspect, os, traceback +import pio def startTest(testName, DEVICE, params): """ @@ -14,6 +15,9 @@ def startTest(testName, DEVICE, params): # by default, assume the test failed: ret = 'Test failed' status = False + self.log('arriva pio') + p = pio() + self.log('passato pio') # put the whole custom code under try/catch. try: # get the path of this script: