Bug 1614443 - added browsertime usage command(--browsertime-help) r=sparky,perftest-reviewers
authorMyeongjun Go <myeongjun.ko@gmail.com>
Thu, 26 Mar 2020 12:44:08 +0000
changeset 520544 9911fb33115594e5bd957b67f1d8b0219efaae9f
parent 520543 58c3533fd95a962487b976a4a129dc6e67f7596a
child 520545 18f5ed3410b9db480e5fe20d431ef29dd25056cd
push id37253
push usernerli@mozilla.com
push dateThu, 26 Mar 2020 21:36:52 +0000
treeherdermozilla-central@c644dd16e2cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssparky, perftest-reviewers
bugs1614443
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1614443 - added browsertime usage command(--browsertime-help) r=sparky,perftest-reviewers Differential Revision: https://phabricator.services.mozilla.com/D67985
tools/browsertime/mach_commands.py
--- a/tools/browsertime/mach_commands.py
+++ b/tools/browsertime/mach_commands.py
@@ -539,37 +539,41 @@ class MachBrowsertime(MachCommandBase):
     @Command('browsertime', category='testing',
              description='Run [browsertime](https://github.com/sitespeedio/browsertime) '
                          'performance tests.')
     @CommandArgument('--verbose', action='store_true',
                      help='Verbose output for what commands the build is running.')
     @CommandArgument('--update-upstream-url', default='')
     @CommandArgument('--setup', default=False, action='store_true')
     @CommandArgument('--clobber', default=False, action='store_true')
-    @CommandArgument('--skip-cache', action='store_true',
-                     help='Skip all local caches to force re-fetching remote artifacts.',
-                     default=False)
+    @CommandArgument('--skip-cache', default=False, action='store_true',
+                     help='Skip all local caches to force re-fetching remote artifacts.')
     @CommandArgument('--check', default=False, action='store_true')
+    @CommandArgument('--browsertime-help', default=False, action='store_true',
+                     help='Show the browsertime help message.')
     @CommandArgument('args', nargs=argparse.REMAINDER)
     def browsertime(self, args, verbose=False,
                     update_upstream_url='', setup=False, clobber=False,
-                    skip_cache=False, check=False):
+                    skip_cache=False, check=False, browsertime_help=False):
         self._set_log_level(verbose)
 
         if update_upstream_url:
             return self.setup(new_upstream_url=update_upstream_url)
         elif setup:
             return self.setup(should_clobber=clobber)
         else:
             if not self._verify_node_install():
                 return 1
 
         if check:
             return self.check()
 
+        if browsertime_help:
+            args.append('--help')
+
         self._activate_virtualenv()
         default_args = self.extra_default_args(args)
         if default_args == 1:
             return 1
         return self.node([browsertime_path()] + default_args + args)
 
     @Command('visualmetrics', category='testing',
              description='Run visualmetrics.py')