Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions framework/core/streamToFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def writeStreamToFile(self, inputStream: IOBase) -> None:

Args:
inputStream (IOBase): The input stream to be read from.
outFileName (str): The path of the output file where the stream data will be written.
If only a file name is given, the file will be written in the current tests log directory.
"""
self._fileHandle = open(self._filePath, 'a+', encoding='utf-8')
self._stopThread = False
Expand Down Expand Up @@ -84,10 +82,9 @@ def readUntil(self, searchString:str, retries: int = 5) -> None:
if read_line == write_line:
time.sleep(1)
else:
while read_line < write_line:
while read_line < write_line and len(result) == 0:
if searchString in out_lines[read_line]:
result = out_lines[:read_line]
break
read_line+=1
retry += 1
self._readLine = read_line
Expand Down