diff --git a/dist/pythonlibs/riotctrl_ctrl/native.py b/dist/pythonlibs/riotctrl_ctrl/native.py index 1695886a75..6e5bee1cd4 100644 --- a/dist/pythonlibs/riotctrl_ctrl/native.py +++ b/dist/pythonlibs/riotctrl_ctrl/native.py @@ -27,6 +27,5 @@ class NativeRIOTCtrl(riotctrl.ctrl.RIOTCtrl): def start_term(self, *args, **kwargs): super().start_term(*args, **kwargs) for child in psutil.Process(pid=self._term_pid()).children(): - for grandchild in child.children(): - if self._set_debug_adapter_id(grandchild): - break + if self._set_debug_adapter_id(child): + break diff --git a/dist/pythonlibs/riotctrl_ctrl/requirements.txt b/dist/pythonlibs/riotctrl_ctrl/requirements.txt index 98fb754d0f..a2b3329f10 100644 --- a/dist/pythonlibs/riotctrl_ctrl/requirements.txt +++ b/dist/pythonlibs/riotctrl_ctrl/requirements.txt @@ -1,3 +1,2 @@ psutil -pyserial riotctrl