[thci] use 'br state' to check isBorderRoutingEnabled (#13506)

This commit is contained in:
Yakun Xu
2026-08-17 11:34:47 -07:00
committed by GitHub
parent 522a665187
commit 5a31f89a9d
+1 -2
View File
@@ -3171,8 +3171,7 @@ class OpenThreadTHCI(object):
@watched
def isBorderRoutingEnabled(self):
try:
self.__executeCommand('br omrprefix local')
return True
return self.__executeCommand('br state')[0] in ('running', 'stopped')
except CommandError:
return False