diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-12-22 09:10:17 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-12-22 09:10:17 +0100 |
commit | f0cccf19e17f2154e3382c32143429d1922673d6 (patch) | |
tree | 6fb5df0e18fbc7cc78e2a557244405584a33fef6 /scripts/LocalDriver.py | |
parent | UWP test controller and related fixes (diff) | |
download | ice-f0cccf19e17f2154e3382c32143429d1922673d6.tar.bz2 ice-f0cccf19e17f2154e3382c32143429d1922673d6.tar.xz ice-f0cccf19e17f2154e3382c32143429d1922673d6.zip |
Added Ice/location & Glacier2/router testing for JS browsers
Diffstat (limited to 'scripts/LocalDriver.py')
-rw-r--r-- | scripts/LocalDriver.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/scripts/LocalDriver.py b/scripts/LocalDriver.py index 4a3de09a362..e3f9814aac6 100644 --- a/scripts/LocalDriver.py +++ b/scripts/LocalDriver.py @@ -192,12 +192,20 @@ class RemoteTestCaseRunner(TestCaseRunner): self.serverController = None self.serverOptions = {} - def getTestSuites(self, mapping, testsuites): + def getTestSuites(self, mapping, testSuiteIds): if self.clientController: - testsuites = [t for t in self.clientController.getTestSuites(mapping) if t in testsuites] + clientTestSuiteIds = self.clientController.getTestSuites(str(mapping)) + if testSuiteIds: + testSuiteIds = [ts for ts in clientTestSuiteIds if ts in testSuiteIds] + else: + testSuiteIds = clientTestSuiteIds if self.serverController: - testsuites = [t for t in self.serverController.getTestSuites(mapping) if t in testsuites] - return testsuites + serverTestSuiteIds = self.serverController.getTestSuites(str(mapping)) + if testSuiteIds: + testSuiteIds = [ts for ts in serverTestSuiteIds if ts in testSuiteIds] + else: + testSuiteIds = serverTestSuiteIds + return mapping.getTestSuites(testSuiteIds) def filterOptions(self, options): import Ice @@ -342,7 +350,7 @@ class LocalDriver(Driver): while True: executor = Executor(self.threadlocal, self.workers, self.continueOnFailure) for mapping in mappings: - testsuites = mapping.getTestSuites(testSuiteIds) + testsuites = self.runner.getTestSuites(mapping, testSuiteIds) # # Sort the test suites to run tests in the following order. |