Closed Bug 1388117 Opened 7 years ago Closed 7 years ago

./mach test doesn't support the jsdebugger option

Categories

(Testing :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1289444

People

(Reporter: bgrins, Unassigned)

References

Details

For example, this works:

  ./mach mochitest browser/base/content/test/sidebar/browser_sidebar_move.js --jsdebugger

But this doesn't:

  ./mach test browser/base/content/test/sidebar/browser_sidebar_move.js --jsdebugger

It fails with:

  > It looks like you passed an unrecognized argument into mach.
  > The test command does not accept the arguments: --jsdebugger

The same thing happens with all arguments that are valid in for individual suite's command but isn't part of `test`.

Would it be possible to pass along arguments to the harnesses that get invoked from the test command? Then if that harness doesn't support the argument it would throw itself.
Looks like a similar bug was opened for --disable-e10s, seems non trivial: Bug 1289444
See Also: → 1289444
The main issue raised in Bug 1289444 seemed to be that some arguments could be accepted by some test harness and not by other, and what should be done if a single ./mach test command spawns tests from different test harness. 

But the proposition in the review to fail for test suites that don't support the argument seems reasonable to me. For --jsdebugger for instance you would most likely use it with a single test.
Component: mach → General
Product: Core → Testing
Just tested with the patch from Bug 1289444 which is about to land and it does fix the issue. Closing as dupe.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.