diff options
author | Al Semjonovs <asemjonovs@google.com> | 2022-12-06 10:05:51 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-08 07:28:49 +0000 |
commit | 86541abde27ed4c95592d3b70bfdb1b7869dc50b (patch) | |
tree | 4d37975f5c9f3e890ecac3efcbad65c1661487c6 | |
parent | b964894e249d151735e1c710da0b065fa2505c90 (diff) | |
download | chrome-ec-86541abde27ed4c95592d3b70bfdb1b7869dc50b.tar.gz |
twister: Fix preupload warning
Resolve preupload failure check
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test
Change-Id: I4d94dcd5a42637891ab9a989fda0272e732bb234
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4083110
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Tested-by: Yuval Peress <peress@google.com>
-rwxr-xr-x | util/zephyr_to_resultdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/zephyr_to_resultdb.py b/util/zephyr_to_resultdb.py index 46e10304a9..67f00e2bfb 100755 --- a/util/zephyr_to_resultdb.py +++ b/util/zephyr_to_resultdb.py @@ -203,10 +203,10 @@ def json_to_resultdb(result_file): class BytesEncoder(json.JSONEncoder): """Encoder for ResultDB format""" - def default(self, obj): - if isinstance(obj, bytes): - return obj.decode("utf-8") - return json.JSONEncoder.default(self, obj) + def default(self, o): + if isinstance(o, bytes): + return o.decode("utf-8") + return json.JSONEncoder.default(self, o) def upload_results(results): |