update extension/src/xdevice_extension/_core/environment/device_monitor.py.

Signed-off-by: <hejian3@huawei.com>
This commit is contained in:
alex_hold 2021-09-08 09:01:15 +00:00 committed by Gitee
parent 3c0d3ae02e
commit 641d0beaaf

View File

@ -86,7 +86,7 @@ class DeviceStateMonitor(object):
while int(time.time()*1000) - start_time < wait_time:
try:
result = self.device.get_recover_result(retry=0)
if result == "1":
if result == "ohos":
return True
except Exception as exception:
self.device.log.error("wait for boot complete exception: %s"