summaryrefslogtreecommitdiff
path: root/scripts/Controller.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-12-02 13:05:37 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-12-02 13:05:37 +0100
commit9812b147db7378304f8410d853f0771357b8dd31 (patch)
tree079b1447b7e399f79ddee28bf8cff8ab82b7971c /scripts/Controller.py
parentFix getSliceDir break with previous changes (diff)
downloadice-9812b147db7378304f8410d853f0771357b8dd31.tar.bz2
ice-9812b147db7378304f8410d853f0771357b8dd31.tar.xz
ice-9812b147db7378304f8410d853f0771357b8dd31.zip
UWP controller fixes
Diffstat (limited to 'scripts/Controller.py')
-rwxr-xr-xscripts/Controller.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Controller.py b/scripts/Controller.py
index 5f7ff6f7dd7..9ceaf015845 100755
--- a/scripts/Controller.py
+++ b/scripts/Controller.py
@@ -46,7 +46,7 @@ class ControllerDriver(Driver):
self.clean = False
parseOptions(self, options, { "clean" : "clean" })
- def run(self, mappings):
+ def run(self, mappings, testSuiteIds):
if isinstance(platform, Darwin):
#
@@ -225,6 +225,8 @@ class ControllerDriver(Driver):
initData.properties.setProperty("ControllerAdapter.AdapterId", Ice.generateUUID())
communicator = Ice.initialize(initData)
+ ctrlCHandler = Ice.CtrlCHandler()
+ ctrlCHandler.setCallback(lambda sig: communicator.shutdown())
try:
adapter = communicator.createObjectAdapter("ControllerAdapter")
adapter.add(ControllerI(self), communicator.stringToIdentity(self.id))
@@ -232,6 +234,7 @@ class ControllerDriver(Driver):
communicator.waitForShutdown()
finally:
communicator.destroy()
+ ctrlCHandler.destroy()
def getCurrent(self, mapping, testsuite, testcase, cross, protocol=None, host=None, args=[]):
import Test