Skip to content

Commit

Permalink
riotctrl_ctrl: one more indirection to get native
Browse files Browse the repository at this point in the history
Since the native process is a child process of pyterm when called via
make we need to dig deeper for riotctrl. This also means that we require
pyserial to execute it.
  • Loading branch information
OlegHahm committed Dec 13, 2023
1 parent 0d1aa51 commit 13e5387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/pythonlibs/riotctrl_ctrl/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ def _set_debug_adapter_id(self, child):
def start_term(self, *args, **kwargs):
super().start_term(*args, **kwargs)
for child in psutil.Process(pid=self._term_pid()).children():
if self._set_debug_adapter_id(child):
break
for grandchild in child.children():
if self._set_debug_adapter_id(grandchild):
break
1 change: 1 addition & 0 deletions dist/pythonlibs/riotctrl_ctrl/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
psutil
pyserial
riotctrl

0 comments on commit 13e5387

Please sign in to comment.