From f63ef280df8f2ab32ba92e9f5a8af74320ced88b Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Sun, 26 Jan 2020 13:04:11 +0100 Subject: [PATCH] nixosTests: Drop invalid utf characters in command output --- nixos/lib/test-driver/test-driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index cf204a2619f5..75f80df53f21 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -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]