Closed Bug 876732 Opened 11 years ago Closed 11 years ago

Add a --debugger-args argument when running mochitest using mach.

Categories

(Firefox Build System :: Mach Core, enhancement)

x86_64
Windows 7
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: padenot, Assigned: padenot)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
And fail if --debugger-args is passed, bug --debugger is not.
Attachment #754862 - Flags: review?(gps)
Attachment #754862 - Attachment is patch: true
Please use 4-space indentation.
gps is on vacation, FWIW.
Attached patch patchSplinter Review
Now with proper white spaces.
Assignee: nobody → paul
Attachment #754862 - Attachment is obsolete: true
Attachment #754862 - Flags: review?(gps)
Attachment #755248 - Flags: review?(ted)
Comment on attachment 755248 [details] [diff] [review]
patch

Review of attachment 755248 [details] [diff] [review]:
-----------------------------------------------------------------

Kind of sucks that we have to keep commandline arguments in sync between the Mochitest harness and the runner, it'd be nice to figure out a way to share that between them.

::: testing/mochitest/mach_commands.py
@@ +214,5 @@
>      debugger = CommandArgument('--debugger', '-d', metavar='DEBUGGER',
>          help='Debugger binary to run test in. Program name or path.')
>      func = debugger(func)
>  
> +    debugger_args = CommandArgument('--debugger-args', '-da',

I'd drop the short -da form, doesn't seem super useful.
Attachment #755248 - Flags: review?(ted) → review+
Pushed with the short switch removed.

https://hg.mozilla.org/integration/mozilla-inbound/rev/1c234d35fb5c
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #4)
> Comment on attachment 755248 [details] [diff] [review]
> patch
> 
> Review of attachment 755248 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Kind of sucks that we have to keep commandline arguments in sync between the
> Mochitest harness and the runner, it'd be nice to figure out a way to share
> that between them.

Maybe too much future thinking but I filed bug 877731 to this end
https://hg.mozilla.org/mozilla-central/rev/1c234d35fb5c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: