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