Closed Bug 640355 Opened 15 years ago Closed 15 years ago

extraneous check and raise for disconnect in MozMill

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

Details

Attachments

(1 file)

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
Attachment #518191 - Flags: review?(ahalberstadt)
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+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: