summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-12-07 16:00:04 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-12-07 16:00:04 +0100
commit9da2b30ad51d881e9ae51163887828741979466c (patch)
tree0208bcce549a0a84053117700b6a2a3643f0c9ac /scripts/Util.py
parentFixed Windows cross testing failure (diff)
downloadice-9da2b30ad51d881e9ae51163887828741979466c.tar.bz2
ice-9da2b30ad51d881e9ae51163887828741979466c.tar.xz
ice-9da2b30ad51d881e9ae51163887828741979466c.zip
Fixed bug where options weren't propagated to all mappings
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 8fa4e315826..b0a0776d39e 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -2149,6 +2149,8 @@ def runTestsWithPath(path):
def runTests(mappings=None, drivers=None):
if not mappings:
mappings = Mapping.getAll()
+ else:
+ mappings = list(set([m.getClientMapping() for m in mappings] + [m.getServerMapping() for m in mappings]))
if not drivers:
drivers = Driver.getAll()
@@ -2195,12 +2197,7 @@ def runTests(mappings=None, drivers=None):
#
configs = {}
for mapping in mappings:
- configs[mapping] = mapping.createConfig(opts)
-
- if len(opts) > 0:
- print(sys.argv[0] + ": unknown options {0}".format(opts))
- usage()
- sys.exit(1)
+ configs[mapping] = mapping.createConfig(opts[:])
#
# Provide the configurations to the driver and load the test suites for each mapping.