idf.py: fix debug extenstion to work with unit tests

This commit is contained in:
David Cermak 2020-04-09 14:54:10 +02:00
parent 445e847274
commit ec391ddfa1

View File

@ -100,9 +100,9 @@ def action_extensions(base_actions, project_path):
_terminate_async_target("gdbgui")
_terminate_async_target("gdb")
def post_debug(action, ctx, args, block):
def post_debug(action, ctx, args, **kwargs):
""" Deal with asynchronous targets, such as openocd running in background """
if block == 1:
if kwargs["block"] == 1:
for target in ["openocd", "gdbgui"]:
if target in processes and processes[target] is not None:
break