summaryrefslogtreecommitdiff
path: root/tests/topotests/munet/cli.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-05-19 21:30:34 -0400
committerGitHub <noreply@github.com>2023-05-19 21:30:34 -0400
commitcd0956e69ddd716163ac1a6b47db8982da2b856a (patch)
treedfef78094cdd660c744da81338dbbee24bda0a44 /tests/topotests/munet/cli.py
parentf6f2059faf23176d822beffedea6d03b3f9a32a2 (diff)
parent76b246aa1f779e17ce6845c6ab0c292497b0008f (diff)
Merge pull request #13559 from opensourcerouting/fix/ignore_decoding_chars
tests: Ignore utf-8 decoding errors
Diffstat (limited to 'tests/topotests/munet/cli.py')
-rw-r--r--tests/topotests/munet/cli.py2
1 files changed, 1 insertions, 1 deletions
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