Bug 1426566 - Make -v an alias to --verbose for `mach python-test`; r=froydnj,nalexander
authorGregory Szorc <gps@mozilla.com>
Fri, 05 Jan 2018 14:19:33 -0800
changeset 398459 a8da2ba97f8f0a43039d62179e390d5848d4eb60
parent 398458 06ee65d8ccdef77673ccc43098525565a11ce370
child 398460 90a62bca5999848c8e2979498f43406b057804e9
push id33220
push userrgurzau@mozilla.com
push dateWed, 10 Jan 2018 09:57:44 +0000
treeherdermozilla-central@78bb2af7c912 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, nalexander
bugs1426566
milestone59.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 1426566 - Make -v an alias to --verbose for `mach python-test`; r=froydnj,nalexander This alias is super common. It exists for other mach commands. Seems useful to have for consistency. MozReview-Commit-ID: 3gBvIHcMEZs
python/mach_commands.py
--- a/python/mach_commands.py
+++ b/python/mach_commands.py
@@ -57,17 +57,17 @@ class MachCommands(MachCommandBase):
 
         return self.run_process([python_path] + args,
                                 pass_thru=True,  # Allow user to run Python interactively.
                                 ensure_exit_code=False,  # Don't throw on non-zero exit code.
                                 append_env=append_env)
 
     @Command('python-test', category='testing',
              description='Run Python unit tests with an appropriate test runner.')
-    @CommandArgument('--verbose',
+    @CommandArgument('-v', '--verbose',
                      default=False,
                      action='store_true',
                      help='Verbose output.')
     @CommandArgument('--stop',
                      default=False,
                      action='store_true',
                      help='Stop running tests after the first error or failure.')
     @CommandArgument('-j', '--jobs',