nixosTests: Drop invalid utf characters in command output
This commit is contained in:
parent
3c5add99f6
commit
f63ef280df
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ class Machine:
|
|||
status_code_pattern = re.compile(r"(.*)\|\!EOF\s+(\d+)")
|
||||
|
||||
while True:
|
||||
chunk = self.shell.recv(4096).decode()
|
||||
chunk = self.shell.recv(4096).decode(errors="ignore")
|
||||
match = status_code_pattern.match(chunk)
|
||||
if match:
|
||||
output += match[1]
|
||||
|
|
Loading…
Reference in a new issue