Bug 1598823: remove visualmetrics mach command r=sparky,releng-reviewers,perftest-reviewers,aki DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D94160
This commit is contained in:
Ben Hearsum 2020-10-22 15:20:20 +00:00
parent 74e2a2cabf
commit 427616a2a1
2 changed files with 0 additions and 36 deletions

1
mach
View File

@ -30,7 +30,6 @@ py2commands="
talos-test talos-test
telemetry-tests-client telemetry-tests-client
test test
visualmetrics
web-platform-tests web-platform-tests
web-platform-tests-update web-platform-tests-update
wpt wpt

View File

@ -581,38 +581,3 @@ class MachBrowsertime(MachCommandBase):
if default_args == 1: if default_args == 1:
return 1 return 1
return self.node([browsertime_path()] + default_args + args) return self.node([browsertime_path()] + default_args + args)
@Command('visualmetrics', category='testing',
description='Run visualmetrics.py')
@CommandArgument('video')
@CommandArgument('args', nargs=argparse.REMAINDER)
def visualmetrics(self, video, args):
self._set_log_level(True)
self.activate_virtualenv()
# Turn '/path/to/video/1.mp4' into '/path/to/video' and '1'.
d, base = os.path.split(video)
index, _ = os.path.splitext(base)
# TODO: write a '--logfile' as well.
args = ['--dir', # Images are written to `/path/to/video/images` (following browsertime).
mozpath.join(d, 'images', index),
'--video',
video,
'--orange',
'--perceptual',
'--contentful',
'--force',
'--renderignore',
'5',
'--json',
'--viewport',
'-q',
'75',
'-vvvv']
return self.run_process(
[visualmetrics_path()] + args,
append_env=self.append_env(),
pass_thru=True,
ensure_exit_code=False, # Don't throw on non-zero exit code.
cwd=mozpath.join(self.topsrcdir))