From 4ca8f6bf1e6ee45642c5268030b92be0ee276f64 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Fri, 23 Oct 2020 22:03:00 +0200 Subject: [PATCH] Autotest: fix githash on python 3 for firmware html page --- Tools/autotest/autotest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index b353a56cef..d1fe0954d9 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -484,6 +484,8 @@ class TestResults(object): self.githash = util.run_cmd('git rev-parse HEAD', output=True, directory=util.reltopdir('.')).strip() + if sys.version_info.major >= 3: + self.githash = self.githash.decode('utf-8') self.tests = [] self.files = [] self.images = []