Skip to content

Commit 8a12400

Browse files
piotrnarajowskimkasenberg
authored andcommitted
iutctl: Fix btmon in native mode
In native we want to start btmon process earlier. Skip starting the process in wait_iut_ready_event() to prevent duplicating processess
1 parent 5ae2cc8 commit 8a12400

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

autopts/ptsprojects/iutctl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,10 @@ def wait_iut_ready_event(self, reset=True):
399399
self.test_case.log_dir)
400400
self._uart_logger.start()
401401

402-
self.rtt_logger_start()
403-
self.btmon_start()
402+
if not self.iut_mode == "native":
403+
# For native mode btmon has been already started
404+
self.rtt_logger_start()
405+
self.btmon_start()
404406

405407
def get_supported_svcs(self):
406408
btp.read_supp_svcs()

0 commit comments

Comments
 (0)