mirror of
https://github.com/openharmony/test_xdevice.git
synced 2026-07-21 06:05:27 -04:00
update extension/src/xdevice_extension/_core/driver/drivers.py.
Signed-off-by:<hejian3@huawei.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user