1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

riotctrl_ctrl: one more indirection to get native

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.
This commit is contained in:
Oleg Hahm 2023-12-13 14:39:21 +01:00
parent a2a1715986
commit 5e0c9b4bff
2 changed files with 4 additions and 2 deletions

View File

@ -27,5 +27,6 @@ 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():
if self._set_debug_adapter_id(child):
break
for grandchild in child.children():
if self._set_debug_adapter_id(grandchild):
break

View File

@ -1,2 +1,3 @@
psutil
pyserial
riotctrl