runner: Ensure generated json is properly UTF8-encoded
Sometimes tests output garbage (e.g. due to extreme occurrences of drm/igt-gpu-tools#55 ) but we need to present the garbage as results. We already ignore any test output after the first \0, and for the rest of the bytes that are not directly UTF-8 as-is, we can quite easily represent them with two-byte UTF-8 encoding. libjson-c already expects the string you feed it through json_object_new_string* functions to be UTF-8. Signed-off-by:Petri Latvala <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Please register or sign in to comment