summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2019-02-13 09:48:55 +0100
committerBenoit Foucher <benoit@zeroc.com>2019-02-13 09:49:08 +0100
commit460104d63324e6032f9fc46a84c0980a8bf06181 (patch)
treef195be500f95df6f78c6dec4c5be16f4ebe61e13 /scripts/Util.py
parentUpdate Windows build requirements (diff)
downloadice-460104d63324e6032f9fc46a84c0980a8bf06181.tar.bz2
ice-460104d63324e6032f9fc46a84c0980a8bf06181.tar.xz
ice-460104d63324e6032f9fc46a84c0980a8bf06181.zip
Added support for overriding default config for testing
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index a947e4e6b0f..f8df189c655 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -162,6 +162,9 @@ class Component(object):
def getProps(self, process, current):
return {}
+ def overrideConfig(self, mapping, config):
+ return config
+
def isCross(self, testId):
return False
@@ -659,6 +662,7 @@ class Mapping(object):
options.update(current.testcase.getMapping().getOptions(current))
options.update(current.testcase.getTestSuite().getOptions(current))
options.update(current.testcase.getOptions(current))
+ options = current.driver.filterOptions(current.driver.getComponent().getOptions(current.testcase, current))
for (k, v) in options.items():
if hasattr(self, k):
@@ -678,6 +682,7 @@ class Mapping(object):
options.update(current.testcase.getMapping().getOptions(current))
options.update(current.testcase.getTestSuite().getOptions(current))
options.update(current.testcase.getOptions(current))
+ options = current.driver.filterOptions(current.driver.getComponent().getOptions(current.testcase, current))
clone = copy.copy(self)
for o in self.parsedOptions:
if o in options and getattr(self, o) not in options[o]:
@@ -806,7 +811,8 @@ class Mapping(object):
return self.component.getTestDir(self)
def createConfig(self, options):
- return self.Config(options)
+ config = self.Config(options)
+ return self.component.overrideConfig(self, config)
def filterTestSuite(self, testId, config, filters=[], rfilters=[]):
if len(filters) > 0: