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 nixos/test-driver: allow multiple entry of polling condition 2022-04-27 16:21:10 +02:00
py.typed nixos/test-driver: Typecheck TestScript 2022-06-02 10:05:45 +02:00
vlan.py add hub mode comment 2022-07-21 16:34:09 +02:00