mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 21:20:11 +00:00
[cert] THCI: only record commissioning log during 'joining' status (#2314)
This commit is contained in:
@@ -521,7 +521,11 @@ class OpenThread(IThci):
|
||||
t_end = time.time() + durationInSeconds
|
||||
while time.time() < t_end:
|
||||
time.sleep(0.3)
|
||||
if self.logThreadStatus == self.logStatus['paused']:
|
||||
|
||||
if self.logThreadStatus == self.logStatus['pauseReq']:
|
||||
self.logThreadStatus = self.logStatus['paused']
|
||||
|
||||
if self.logThreadStatus != self.logStatus['running']:
|
||||
continue
|
||||
|
||||
try:
|
||||
@@ -532,15 +536,14 @@ class OpenThread(IThci):
|
||||
|
||||
if "Join success" in line:
|
||||
self.joinCommissionedStatus = self.joinStatus['succeed']
|
||||
break
|
||||
elif "Join failed" in line:
|
||||
self.joinCommissionedStatus = self.joinStatus['failed']
|
||||
break
|
||||
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if self.logThreadStatus == self.logStatus['pauseReq']:
|
||||
self.logThreadStatus = self.logStatus['paused']
|
||||
|
||||
self.logThreadStatus = self.logStatus['stop']
|
||||
return logs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user