提交 cdcae7f4 编写于 作者: A alex_hold

fixed ca09a472 from https://gitee.com/alex__hold/test_xdevice/pulls/58

update extension/src/xdevice_extension/_core/driver/drivers.py.
Signed-off-by:<hejian3@huawei.com>
上级 e2c2ec25
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册