From 1964350871127ed5d9e17d00b8dac440552e548e Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 2 Aug 2023 12:03:21 -0600 Subject: [PATCH] PhysicalConsole: Tolerate invalid UTF-8 characters ... in pexpect.spawn() calls. Fixes: https://tracker.ceph.com/issues/62226 Signed-off-by: Zack Cerza --- teuthology/orchestra/console.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teuthology/orchestra/console.py b/teuthology/orchestra/console.py index ade67e46b..3afed56c4 100644 --- a/teuthology/orchestra/console.py +++ b/teuthology/orchestra/console.py @@ -76,6 +76,7 @@ def _pexpect_spawn(self, cmd): p = pexpect.spawn( cmd, encoding='utf-8', + codec_errors="backslashreplace", ) p.logfile_read = io.StringIO() return p