From 76b246aa1f779e17ce6845c6ab0c292497b0008f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 19 May 2023 14:57:56 +0300 Subject: [PATCH] tests: Ignore utf-8 decoding errors This is happening sometimes for stuff like `r1 shi cat ...`. Signed-off-by: Donatas Abraitis --- tests/topotests/munet/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/munet/cli.py b/tests/topotests/munet/cli.py index f58ea99d67..fc88dc320a 100644 --- a/tests/topotests/munet/cli.py +++ b/tests/topotests/munet/cli.py @@ -93,7 +93,7 @@ def spawn(unet, host, cmd, iow, ns_only): elif master_fd in r: o = os.read(master_fd, 10240) if o: - iow.write(o.decode("utf-8")) + iow.write(o.decode("utf-8", "ignore")) iow.flush() finally: # restore tty settings back