Closed
Bug 1036565
Opened 11 years ago
Closed 5 years ago
marionette_test calling addError results in multiple test_end messages
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: chmanchester, Unassigned)
Details
Attachments
(1 file)
Browsing marionette logs today I noticed exceptions thrown in the tbplformatter since landing bug 956739 when an error is encountered in a test. It looks like marionette_test calling addError directly is causing multiple test_end messages to be emmited by the strucutured runner, causing the formatter to throw.
| Reporter | ||
Comment 1•11 years ago
|
||
| Reporter | ||
Comment 2•11 years ago
|
||
We need to arrange to have marionette use the structured api correctly, but here's a stopgap to keep the formatter from throwing in the meantime, in case the errors missing from the logs due to this are useful.
Attachment #8453243 -
Flags: review?(james)
| Reporter | ||
Updated•11 years ago
|
Assignee: nobody → cmanchester
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•11 years ago
|
||
As far as I can see, this can only happen if both this:
http://hg.mozilla.org/mozilla-central/annotate/0f8a2996abc9/testing/marionette/client/marionette/marionette_test.py#l189
and this:
http://hg.mozilla.org/mozilla-central/annotate/0f8a2996abc9/testing/marionette/client/marionette/marionette_test.py#l205
execute, implying an exception thrown in tearDown(). I guess I don't know why this would happen, or if the second error might be significant.
Comment 4•11 years ago
|
||
We do a few things in tearDown:
http://mxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/marionette_test.py#352
So if something bad happened during the test (like B2G hung or crashed), we could end up timing out during the test (error #1) and then dying during tearDown as well (error #2). In this case, the second error isn't really significant, since it's a side-effect of the first.
| Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8453243 [details] [diff] [review]
Prevent the tbplformatter from throwing when multiple test_end messages are issued.
Review of attachment 8453243 [details] [diff] [review]:
-----------------------------------------------------------------
Ok, let's not do this as a stopgap. I still don't think the formatter should throw, but let's work that out in bug 1036427.
Attachment #8453243 -
Flags: review?(james)
Comment 6•11 years ago
|
||
It seems like an error in teardown should just be logged as an error, and we should enforce the invariant that we have always logged test_end before teardown (or we always do after teardown).
| Reporter | ||
Comment 7•5 years ago
|
||
I'm assuming this patch isn't relevant anymore.
Assignee: cmanchester → nobody
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•