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:
parent
a2a1715986
commit
5e0c9b4bff
5
dist/pythonlibs/riotctrl_ctrl/native.py
vendored
5
dist/pythonlibs/riotctrl_ctrl/native.py
vendored
@ -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
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
psutil
|
||||
pyserial
|
||||
riotctrl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user