Closed Bug 1586027 Opened 5 years ago Closed 5 years ago

'mach help test-info' only displays help for subcommands

Categories

(Testing :: General, defect, P1)

Version 3
defect

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

$ ./mach help test-info
usage: mach [global arguments] test-info subcommand [subcommand arguments]

Global Arguments:
  -v, --verbose         Print verbose output.
  -l FILENAME, --log-file FILENAME
                        Filename to write log data to.
  --log-interval        Prefix log line with interval from last message rather
                        than relative time. Note that this is NOT execution
                        time if there are parallel operations.
  --log-no-times        Do not prefix log lines with times. By default, mach
                        will prefix each output line with the time since
                        command start.
  -h, --help            Show this help message.
  --debug-command       Start a Python debugger when command is dispatched.
  --settings FILENAME   Path to settings file.

Sub Commands:
  long-tasks            Find tasks approaching their taskcluster max-run-time.
  report                Generate a json report of test manifests and/or tests
                        categorized by Bugzilla component and optionally
                        filtered by path, component, and/or manifest
                        annotations.

There is no way to display the help for the options at:

https://searchfox.org/mozilla-central/rev/01d1011ca4a460f751da030d455d35c267c3e210/testing/mach_commands.py#668-692

I think there will be additional sub-commands added to test-info in the future. It is probably best to implement all test-info functionality as sub-commands.

Adds 'tests' sub-command for 'mach test-info'.
'mach help test-info' shows all sub-commands.
'mach help test-info <subcommand>' shows sub-command descriptions,
including help for the options previously excluded.

Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e286b93308ba Improve help for 'mach test-info'; r=bc
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Blocks: 1577302
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: