Closed
Bug 640355
Opened 15 years ago
Closed 15 years ago
extraneous check and raise for disconnect in MozMill
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
Details
Attachments
(1 file)
|
795 bytes,
patch
|
ahal
:
review+
|
Details | Diff | Splinter Review |
run_tests looks for a disconnect and raises it if there is not a user
shutdown. However, it also raises it even if there is a user
shutdown, breaking test_usershutdown.js and probably all user shutdown stuff:
def run(self, tests):
"""run the tests"""
disconnected = False
try:
self.run_tests(tests)
except JSBridgeDisconnectError:
disconnected = True
if not self.userShutdownEnabled:
self.report_disconnect()
raise
if disconnected:
# raise the disconnect error
raise
``disconnected`` and its associated if clause needs to go
| Reporter | ||
Comment 1•15 years ago
|
||
Attachment #518191 -
Flags: review?(ahalberstadt)
Comment 2•15 years ago
|
||
Comment on attachment 518191 [details] [diff] [review]
this at least fixes test_usershutdown.js
There seems to be a problem with the mozmill/test/restart/test_user_restart/ test but I'm pretty sure that is a problem with the test itself (it hasn't been updated since the summer).
In regards to this bug "extraneous check and raise" this patch looks good and also fixes test_userShutdown.js
Attachment #518191 -
Flags: review?(ahalberstadt) → review+
| Reporter | ||
Comment 3•15 years ago
|
||
pushed to master: https://github.com/mozautomation/mozmill/commit/a2af26231a8bbd0023c63c554166bfbbcb1f1d23
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
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
•