From: Donatas Abraitis Date: Fri, 19 May 2023 11:57:56 +0000 (+0300) Subject: tests: Ignore utf-8 decoding errors X-Git-Tag: base_9.0~54^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F13559%2Fhead;p=mirror%2Ffrr.git tests: Ignore utf-8 decoding errors This is happening sometimes for stuff like `r1 shi cat ...`. Signed-off-by: Donatas Abraitis --- 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