nixpkgs/nixos/lib/test-driver/test_driver
rnhmjoj 067d688b16
nixos/test-driver: handle decoding errors in Machine.execute
The output of a command is not guaranteed to be valid UTF-8, so the
decoding can fail raising UnicodeDecodeError. If this happens during a
`succeeds` the check will be erroneously marked failed.

This changes the error handling to the "replace" mode, where invalid
codepoints are replaced with � (REPLACEMENT CHARACTER U+FFFD) and the
decoding can go on.
2023-02-07 08:47:14 +01:00
..
__init__.py nixos/test-driver: use f-strings instead of .format() 2022-12-29 23:51:35 +01:00
driver.py nixos/test-driver: use f-strings instead of .format() 2022-12-29 23:51:35 +01:00
logger.py nixos/test-driver: use f-strings instead of .format() 2022-12-29 23:51:35 +01:00
machine.py nixos/test-driver: handle decoding errors in Machine.execute 2023-02-07 08:47:14 +01:00
polling_condition.py
py.typed
vlan.py