Bug 1638978 - Convert mach puppeteer-test to Python 3, r=remote-protocol-reviewers,maja_zf

Differential Revision: https://phabricator.services.mozilla.com/D77443
This commit is contained in:
James Graham 2020-05-29 12:37:45 +00:00
parent a557087998
commit 9c097cff23
2 changed files with 1 additions and 2 deletions

1
mach
View File

@ -30,7 +30,6 @@ py2commands="
mozharness
pastebin
prettier-format
puppeteer-test
python
python-test
raptor

View File

@ -161,6 +161,7 @@ def npm(*args, **kwargs):
args=list(args),
cwd=kwargs.get("cwd"),
env=env,
universal_newlines=True,
**proc_kwargs)
if not kwargs.get("wait", True):
return p
@ -205,7 +206,6 @@ class MochaOutputHandler(object):
return self.proc and self.proc.pid
def __call__(self, line):
line = line.decode("utf-8", "replace")
line_text = self.control_re.subn("", line)[0]
m = self.test_name_re.match(line_text)
if m: