update extension/src/xdevice_extension/_core/driver/drivers.py.

Signed-off-by:<hejian3@huawei.com>
This commit is contained in:
alex_hold
2021-10-29 02:55:13 +00:00
committed by Gitee
parent bf78ff1210
commit ca09a47200
@@ -1636,8 +1636,8 @@ class JSUnitTestDriver(IDriver):
LOG.info("The timeout is {} seconds".format(timeout))
while time.time() - self.start_time <= timeout:
result_message = ""
with open(device_log_file, "r", encoding='utf-8') \
as file_read_pipe:
with open(device_log_file, "r", encoding='utf-8',
errors='ignore') as file_read_pipe:
lines = file_read_pipe.readlines()
for line in lines:
if line.find("JSApp:") != -1: