From 01a5e33dc461382d73ba5ac2f501613dab8d5d87 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Wed, 2 Sep 2015 15:11:37 +0200 Subject: [PATCH] Closedown --- script/local.py | 2 +- .../tests/tests/Range Shifter Tests/Monitor All/Monitor All.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index 9e145b2..8c76e1c 100644 --- a/script/local.py +++ b/script/local.py @@ -21,7 +21,7 @@ class TestingTool: #paramName = the name of the parameter for which the value must be read def getParam(self, paramName): try: - return params[paramName]["value"] + return self.testParams[paramName]["value"] except: self.log('Could not retrieve testing parameter ' + paramName + ' - Details: ' + traceback.format_exc()) return None diff --git a/script/tests/tests/Range Shifter Tests/Monitor All/Monitor All.py b/script/tests/tests/Range Shifter Tests/Monitor All/Monitor All.py index fc93704..610217a 100644 --- a/script/tests/tests/Range Shifter Tests/Monitor All/Monitor All.py +++ b/script/tests/tests/Range Shifter Tests/Monitor All/Monitor All.py @@ -9,7 +9,7 @@ def startTest(testName, DEVICE, params): #get the path of this script testPath = inspect.getfile(inspect.currentframe()) #init the testing tool class - test = TestingTool(testName, testPath, DEVICE) + test = TestingTool(testName, testPath, DEVICE, params) #by default, failed ret = 'Test failed' status = False