Bug 787203 - [mozrunner] Update `disconnected` when cleaning up after emulator shutdown; r?ahal
Allows Marionette client's FennecInstance to clean up properly
MozReview-Commit-ID: BWuNh5cq3ZD
--- a/testing/mozbase/mozrunner/mozrunner/devices/emulator.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/emulator.py
@@ -155,16 +155,17 @@ class BaseEmulator(Device):
def cleanup(self):
"""
Cleans up and kills the emulator, if it was started by mozrunner.
"""
super(BaseEmulator, self).cleanup()
if self.proc:
self.proc.kill()
self.proc = None
+ self.connected = False
# Remove temporary files
shutil.rmtree(self.tmpdir)
def _get_telnet_response(self, command=None):
output = []
assert self.telnet
if command is not None: