Closed
Bug 797213
Opened 13 years ago
Closed 13 years ago
Various jstests.py changes
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: sfink, Assigned: sfink)
Details
Attachments
(3 files)
4.86 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
1.50 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
1.78 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
I made a collection of unrelated little changes to jstests.py
Assignee | ||
Comment 1•13 years ago
|
||
I also snuck a change to the output format, to display the test name in the output so that it is possible to associate output with the test that produced it. I mixed it in just because it was a little harder to separate out into a separate patch. I could easily do so, if you'd like.
Assignee | ||
Updated•13 years ago
|
Attachment #667244 -
Flags: review?(terrence)
Assignee | ||
Comment 2•13 years ago
|
||
I didn't expect to have to specify -o in addition to -O. I get that you might want to use -s instead of -o, but -o is probably much more common.
Attachment #667245 -
Flags: review?(terrence)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #667246 -
Flags: review?(terrence)
Comment 4•13 years ago
|
||
Comment on attachment 667244 [details] [diff] [review]
jstests.py: add a -F (--failed-only) option to only display output of failed tests.
Review of attachment 667244 [details] [diff] [review]:
-----------------------------------------------------------------
Handy!
::: js/src/tests/jstests.py
@@ +113,5 @@
> help='Show exact commandline used to run each test.')
> output_og.add_option('-o', '--show-output', action='store_true',
> help="Print each test's output to stdout.")
> + output_og.add_option('-F', '--failed-only', action='store_true',
> + help="Only print output for failed tests.")
You might want to mention that this only filters --show-output and --show-output is still required to get any test output.
Attachment #667244 -
Flags: review?(terrence) → review+
Comment 5•13 years ago
|
||
Comment on attachment 667245 [details] [diff] [review]
jstests.py -O<filename> should default show-output to on.
Review of attachment 667245 [details] [diff] [review]:
-----------------------------------------------------------------
Okay by me.
Attachment #667245 -
Flags: review?(terrence) → review+
Comment 6•13 years ago
|
||
Comment on attachment 667246 [details] [diff] [review]
Test output may not go to stdout if -O given
Review of attachment 667246 [details] [diff] [review]:
-----------------------------------------------------------------
I'm guessing this belongs on top of the prior patch ;-).
::: js/src/tests/jstests.py
@@ +111,5 @@
> output_og = OptionGroup(op, "Output", "Modify the harness and tests output.")
> output_og.add_option('-s', '--show-cmd', action='store_true',
> help='Show exact commandline used to run each test.')
> output_og.add_option('-o', '--show-output', action='store_true',
> + help="Print each test's output.")
s/output./output to the file specified by --output-file./
@@ +116,4 @@
> output_og.add_option('-F', '--failed-only', action='store_true',
> help="Only print output for failed tests.")
> output_og.add_option('-O', '--output-file',
> help='Write all output to the given file.')
Add: " (default: stdout)"
Attachment #667246 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 7•13 years ago
|
||
![]() |
||
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5a932c059384
https://hg.mozilla.org/mozilla-central/rev/a714b4f802e2
https://hg.mozilla.org/mozilla-central/rev/a195554cc7f6
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•