Commit 68d16909 authored by Joel Maher's avatar Joel Maher
Browse files

Bug 1728739 - Fix unicode error on when logging browsertime results on...

Bug 1728739 - Fix unicode error on when logging browsertime results on windows. r=ahal,perftest-reviewers,kimberlythegeek

Differential Revision: https://phabricator.services.mozilla.com/D124506
parent ea371f72
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -451,7 +451,13 @@ class Browsertime(Perftest):
                if self.browsertime_failure, and raise an Exception if necessary
                to stop Raptor execution (preventing the results processing).
                """
                match = line_matcher.match(line.decode("utf-8"))

                # NOTE: this hack is to workaround encoding issues on windows
                # a newer version of browsertime adds a `σ` character to output
                line = line.replace(b"\xcf\x83", b"")

                line = line.decode("utf-8")
                match = line_matcher.match(line)
                if not match:
                    LOG.info(line)
                    return