summaryrefslogtreecommitdiff
path: root/scripts/LocalDriver.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2018-02-10 00:54:02 +0100
committerBenoit Foucher <benoit@zeroc.com>2018-02-10 00:54:47 +0100
commitaa0de68c34676ca303a14cc327a23d30326dd993 (patch)
tree6f5c8258d6a72eb5eb2e067016df7c8a46b87dea /scripts/LocalDriver.py
parentICE-8636 - assertion failure with PHP7 debug build (diff)
downloadice-aa0de68c34676ca303a14cc327a23d30326dd993.tar.bz2
ice-aa0de68c34676ca303a14cc327a23d30326dd993.tar.xz
ice-aa0de68c34676ca303a14cc327a23d30326dd993.zip
Fixed servantLocator cross test failure, improved cross testing
Diffstat (limited to 'scripts/LocalDriver.py')
-rw-r--r--scripts/LocalDriver.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/LocalDriver.py b/scripts/LocalDriver.py
index 8c672df7235..689fee8cfd9 100644
--- a/scripts/LocalDriver.py
+++ b/scripts/LocalDriver.py
@@ -427,7 +427,7 @@ class LocalDriver(Driver):
continue
elif isinstance(self.runner, RemoteTestCaseRunner) and not testsuite.isMultiHost():
continue
- self.executor.submit(testsuite, Mapping.getAll() if self.allCross else [self.cross], self)
+ self.executor.submit(testsuite, Mapping.getAll(self) if self.allCross else [self.cross], self)
#
# Run all the tests and wait for the executor to complete.
@@ -527,7 +527,7 @@ class LocalDriver(Driver):
return
client = current.testcase.getClientTestCase()
- for cross in (Mapping.getAll() if self.allCross else [self.cross]):
+ for cross in (Mapping.getAll(self) if self.allCross else [self.cross]):
# Only run cross tests with allCross
if self.allCross and cross == current.testcase.getMapping():
@@ -538,11 +538,6 @@ class LocalDriver(Driver):
if not server:
continue
- if cross and server.getMapping() != cross:
- if not self.allCross:
- current.result.skipped(current, "no server available for `{0}' mapping".format(cross))
- continue
-
current.writeln("[ running {0} test - {1} ]".format(current.testcase, time.strftime("%x %X")))
if not self.all:
current.config = current.config.cloneRunnable(current)
@@ -581,7 +576,8 @@ class LocalDriver(Driver):
def runTestCase(self, current):
if self.cross or self.allCross:
- current.result.skipped(current, "only client/server tests are ran with cross tests")
+ #current.result.skipped(current, "only client/server tests are ran with cross tests")
+ return
if not current.testcase.getParent():
current.writeln("[ running {0} test - {1} ]".format(current.testcase, time.strftime("%x %X")))
@@ -624,7 +620,7 @@ class LocalDriver(Driver):
return props
def getMappings(self):
- return Mapping.getAll() if self.allCross else [self.cross] if self.cross else []
+ return Mapping.getAll(self) if self.allCross else [self.cross] if self.cross else []
def filterOptions(self, testcase, options):
return self.runner.filterOptions(options)