diff options
author | Petri Latvala <petri.latvala@intel.com> | 2018-11-13 13:22:51 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-12-12 12:44:54 +0200 |
commit | f81cdf9d3a475b6135c0951d1c7169f226164baf (patch) | |
tree | 29932b94db2b03ad7b4ee402c550e95ac5464e8f /runner/json_tests_data/dmesg-escapes/0/dmesg.txt | |
parent | 3b52e8a5809a4e860350c59476a456745cd9fee0 (diff) |
runner: Handle escaped characters from kmsg
Characters in kernel logs, when read from /dev/kmsg, are escaped as
\xNN if they are not between 32 and 127 of if they are "\". Decode
what we can when creating results.json.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'runner/json_tests_data/dmesg-escapes/0/dmesg.txt')
-rw-r--r-- | runner/json_tests_data/dmesg-escapes/0/dmesg.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runner/json_tests_data/dmesg-escapes/0/dmesg.txt b/runner/json_tests_data/dmesg-escapes/0/dmesg.txt new file mode 100644 index 00000000..a585c03a --- /dev/null +++ b/runner/json_tests_data/dmesg-escapes/0/dmesg.txt @@ -0,0 +1,13 @@ +6,951,3216186095083,-;Console: switching to colour dummy device 80x25 +14,952,3216186095097,-;[IGT] successtest: executing +14,953,3216186101115,-;[IGT] successtest: starting subtest first-subtest +6,954,3216186101159,-;String with a\x0anewline +6,954,3216186101159,-;String with a\x09tab +6,954,3216186101159,-;String with an explicit\x00NUL +6,954,3216186101159,-;The character \x13 should be nonprintable +6,954,3216186101159,-;Escaped backslash is \x5c +6,954,3216186101159,-;Kernel shouldn't output this but cutoff escape \x1 +6,954,3216186101159,-;More cutoff \x +6,954,3216186101159,-;One more \ +14,955,3216186101160,-;[IGT] successtest: exiting, ret=0 +6,956,3216186101299,-;Console: switching to colour frame buffer device 240x75 |