mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Updating run_scenario method to not launch new parallel tests
if top test is terminating.
This commit is contained in:
parent
042625a8e2
commit
2541f2cb25
@ -96,7 +96,13 @@ def run_scenario(pool, tasks, scenario, kwargs=None):
|
||||
if kwargs is None:
|
||||
kwargs = {}
|
||||
|
||||
_top = top()
|
||||
def _scenario_wrapper(**kwargs):
|
||||
if _top.terminating:
|
||||
return
|
||||
return scenario(**kwargs)
|
||||
|
||||
if current().context.parallel:
|
||||
start(pool, tasks, scenario, kwargs)
|
||||
start(pool, tasks, _scenario_wrapper, kwargs)
|
||||
else:
|
||||
scenario(**kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user