diff --git a/extension/src/xdevice_extension/_core/driver/drivers.py b/extension/src/xdevice_extension/_core/driver/drivers.py index 87867bd1dfb4a457c1bafaef734857b141a2bccd..b3f7c026664ef9c7eb7648759a8d3ccbabe6ee3b 100644 --- a/extension/src/xdevice_extension/_core/driver/drivers.py +++ b/extension/src/xdevice_extension/_core/driver/drivers.py @@ -1641,9 +1641,9 @@ class JSUnitTestDriver(IDriver): def read_device_log(self, device_log_file, timeout=60): LOG.info("The timeout is {} seconds".format(timeout)) - result_message = "" + while time.time() - self.start_time <= timeout: - + result_message = "" with open(device_log_file, "r", encoding='utf-8', errors='ignore') as file_read_pipe: while True: