diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-12-13 18:09:53 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-12-13 18:09:53 +0100 |
commit | 9351b7899bc9d208f171ffafd7ecd8a3a8ae36cf (patch) | |
tree | fbe2e07402709a1f419151f2d8b0f21611dc730d /scripts/Controller.py | |
parent | Mising argument in getIceDir call (diff) | |
download | ice-9351b7899bc9d208f171ffafd7ecd8a3a8ae36cf.tar.bz2 ice-9351b7899bc9d208f171ffafd7ecd8a3a8ae36cf.tar.xz ice-9351b7899bc9d208f171ffafd7ecd8a3a8ae36cf.zip |
Fixed JS controller failures
Diffstat (limited to 'scripts/Controller.py')
-rwxr-xr-x | scripts/Controller.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/Controller.py b/scripts/Controller.py index 54ad45ade09..a13f0c69dc4 100755 --- a/scripts/Controller.py +++ b/scripts/Controller.py @@ -34,14 +34,19 @@ class ControllerDriver(Driver): print("") print("Controller driver options:") print("--id=<identity> The identify of the controller object.") + print("--endpoints=<endpts> The endpoints to listen on.") print("--clean Remove trust settings (OS X).") def __init__(self, options, *args, **kargs): Driver.__init__(self, options, *args, **kargs) self.id = "controller" + self.endpoints = "" self.clean = False parseOptions(self, options, { "clean" : "clean" }) + if not self.endpoints: + self.endpoints = "tcp -h " + (self.interface or "127.0.0.1") + def run(self, mappings, testSuiteIds): if isinstance(platform, Darwin): @@ -135,6 +140,8 @@ class ControllerDriver(Driver): for a in attrs: v = getattr(config, a) if v is not Ice.Unset: + if a not in self.current.config.parsedOptions: + self.current.config.parsedOptions.append(a) setattr(self.current.config, a, v) class ControllerI(Test.Common.Controller): @@ -159,8 +166,7 @@ class ControllerDriver(Driver): self.initCommunicator() - self.communicator.getProperties().setProperty("ControllerAdapter.Endpoints", - "tcp -h {0}".format(self.interface or "127.0.0.1")) + self.communicator.getProperties().setProperty("ControllerAdapter.Endpoints", self.endpoints) self.communicator.getProperties().setProperty("ControllerAdapter.AdapterId", Ice.generateUUID()) adapter = self.communicator.createObjectAdapter("ControllerAdapter") adapter.add(ControllerI(self), self.communicator.stringToIdentity(self.id)) |