Closed
Bug 644792
Opened 15 years ago
Closed 15 years ago
test run summary print statements should be real logging messages
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: harth, Assigned: harth)
Details
(Whiteboard: [mozmill-2.0+])
Attachments
(1 file)
|
1.65 KB,
patch
|
cmtalbert
:
review+
|
Details | Diff | Splinter Review |
Right now at the end of a test run we print() these:
INFO Passed: 27
INFO Failed: 1
INFO Skipped: 0
This syntax looks much like the syntax for our logging.INFO statments, but not quite! They should be turned into real logging statements to take advantage of our logging system, like being parseable and logging to both file and console.
Then they would look like:
INFO | Passed: 27
INFO | Failed: 1
INFO | Skipped: 0
| Assignee | ||
Comment 1•15 years ago
|
||
This patch turns the print statements into logging.info()s and also set the default logging level to INFO so that they still show up by default after a test run.
Assignee: nobody → fayearthur+bugs
Attachment #521662 -
Flags: review?(jhammel)
Comment 2•15 years ago
|
||
Looks good, but I'm not sure if we want it to look different than what the other harnesses do (i.e. the pipes versus the spaces). I'm fine with this, but it isn't what e.g. mochitest does:
20439 INFO Passed: 19943
20440 INFO Failed: 2
20441 INFO Todo: 43
(from: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1300997663.1300998308.16563.gz&fulltext=1)
buildbotcustom would have to be changed. So....I don't know. These should be logged, but this is again where we run up against something being hard to do with python logging :(
:ctalbert? ideas?
Comment 3•15 years ago
|
||
Comment on attachment 521662 [details] [diff] [review]
turn summary print statements into logging.info() s and set default console logging level to INFO
Giving this to you, :ctalbert, as I'm not sure what to do with it. We want to log this, but python logging makes this difficult. Not sure where to go from here :/
Attachment #521662 -
Flags: review?(jhammel) → review?(ctalbert)
Comment on attachment 521662 [details] [diff] [review]
turn summary print statements into logging.info() s and set default console logging level to INFO
This looks good. From our quick review of the logging styles we should go with the "INFO | <foo>" style. This conforms to reftest, xpcshell, and browser-chrome (note that browser chrome prepends "test", "TEST-INFO | <foo>"), but reftest and xpcshell do "INFO | <foo>" style.
Mochitest is the only outlier that uses "INFO <foo>".
Attachment #521662 -
Flags: review?(ctalbert) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•