Skip to content
Snippets Groups Projects
Commit 0e1fa5227987 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

stuck-benchmarks: add `finalize_teardown` for `BaseExchangeMixin`

If the `setup` method fails, the tests session waits for timeout (1800s per
benchmark!), because BaseExchangeMixin's setup launches `hg serve`. The ASV
test runner does not understand that setup failed and it should move on to
the next benchmark.
This shuts down the `hg serve` in case the `setup` breaks.
parent bb255de19b92
No related branches found
No related tags found
No related merge requests found
...@@ -280,6 +280,9 @@ ...@@ -280,6 +280,9 @@
else: else:
self.rev = None self.rev = None
def finalize_teardown(self, exc_info, current_params):
self._teardown_repo_type()
class classproperty(object): class classproperty(object):
def __init__(self, f): def __init__(self, f):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment