nixpkgs/nixos/lib/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
..
test_driver nixos/test-driver: handle decoding errors in Machine.execute 2023-02-07 08:47:14 +01:00
default.nix treewide: switch to nativeCheckInputs 2023-01-21 12:00:00 +00:00
setup.py