Closed Bug 797213 Opened 13 years ago Closed 13 years ago

Various jstests.py changes

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(3 files)

I made a collection of unrelated little changes to jstests.py
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.
Attachment #667244 - Flags: review?(terrence)
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)
Attachment #667246 - Flags: review?(terrence)
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 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 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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: