diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/resulttool/resultutils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py index 177fb25f93..7cb85a6aa9 100644 --- a/scripts/lib/resulttool/resultutils.py +++ b/scripts/lib/resulttool/resultutils.py | |||
@@ -126,7 +126,11 @@ def decode_log(logdata): | |||
126 | if "compressed" in logdata: | 126 | if "compressed" in logdata: |
127 | data = logdata.get("compressed") | 127 | data = logdata.get("compressed") |
128 | data = base64.b64decode(data.encode("utf-8")) | 128 | data = base64.b64decode(data.encode("utf-8")) |
129 | return zlib.decompress(data).decode("utf-8") | 129 | data = zlib.decompress(data) |
130 | try: | ||
131 | return data.decode("utf-8") | ||
132 | except UnicodeDecodeError: | ||
133 | return data | ||
130 | return None | 134 | return None |
131 | 135 | ||
132 | def ptestresult_get_log(results, section): | 136 | def ptestresult_get_log(results, section): |