summaryrefslogtreecommitdiff
path: root/scripts/LocalDriver.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-06-13 11:03:02 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-06-13 11:03:02 +0200
commitaf53ff88ac807617ad606aac763ab55311c5cb4c (patch)
tree4f7bc049c77ce74a1cea1c25ecfa3b354c8ba4a4 /scripts/LocalDriver.py
parentFixed stack traces raised by Java synchronous calls (diff)
downloadice-af53ff88ac807617ad606aac763ab55311c5cb4c.tar.bz2
ice-af53ff88ac807617ad606aac763ab55311c5cb4c.tar.xz
ice-af53ff88ac807617ad606aac763ab55311c5cb4c.zip
Added dispalty of loop count to allTests.py
Diffstat (limited to 'scripts/LocalDriver.py')
-rw-r--r--scripts/LocalDriver.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/LocalDriver.py b/scripts/LocalDriver.py
index e0deb6e2f19..3370e7f3c0b 100644
--- a/scripts/LocalDriver.py
+++ b/scripts/LocalDriver.py
@@ -353,6 +353,7 @@ class LocalDriver(Driver):
self.results = []
self.threadlocal = threading.local()
+ self.loopCount = 1
def run(self, mappings, testSuiteIds):
@@ -411,6 +412,8 @@ class LocalDriver(Driver):
for r in sorted(results, key = lambda r : r.getDuration()):
print("- {0} took {1:02.2f} seconds".format(r.testsuite, r.getDuration()))
+ self.loopCount += 1
+
if len(failures) > 0:
print("{0} succeeded and {1} failed:".format(len(results) - len(failures), len(failures)))
for r in failures:
@@ -430,10 +433,12 @@ class LocalDriver(Driver):
return 0
def runTestSuite(self, current):
- current.result.writeln("*** [{0}/{1}] Running {2}/{3} tests ***".format(current.index,
- current.total,
- current.testsuite.getMapping(),
- current.testsuite))
+ if self.loop:
+ current.result.write("*** [{0}/{1} loop={2}] ".format(current.index, current.total, self.loopCount))
+ else:
+ current.result.write("*** [{0}/{1}] ".format(current.index, current.total))
+ current.result.writeln("Running {0}/{1} tests ***".format(current.testsuite.getMapping(), current.testsuite))
+
success = False
try:
try: