From ec391ddfa18523a0d3feb2c4ec623a8e92e99af4 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 9 Apr 2020 14:54:10 +0200 Subject: [PATCH] idf.py: fix debug extenstion to work with unit tests --- tools/idf_py_actions/debug_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/idf_py_actions/debug_ext.py b/tools/idf_py_actions/debug_ext.py index 2063faa21c..7bef9fae88 100644 --- a/tools/idf_py_actions/debug_ext.py +++ b/tools/idf_py_actions/debug_ext.py @@ -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