forked from Mirror/frr
Merge pull request #13559 from opensourcerouting/fix/ignore_decoding_chars
tests: Ignore utf-8 decoding errors
This commit is contained in:
commit
cd0956e69d
|
@ -93,7 +93,7 @@ def spawn(unet, host, cmd, iow, ns_only):
|
||||||
elif master_fd in r:
|
elif master_fd in r:
|
||||||
o = os.read(master_fd, 10240)
|
o = os.read(master_fd, 10240)
|
||||||
if o:
|
if o:
|
||||||
iow.write(o.decode("utf-8"))
|
iow.write(o.decode("utf-8", "ignore"))
|
||||||
iow.flush()
|
iow.flush()
|
||||||
finally:
|
finally:
|
||||||
# restore tty settings back
|
# restore tty settings back
|
||||||
|
|
Loading…
Reference in a new issue