Closed
Bug 1030785
Opened 10 years ago
Closed 10 years ago
Calling stop() on B2GEmulatorRunner instance doesn't stop emulator
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: dminor, Unassigned)
Details
When running this script:
from mozrunner import B2GEmulatorRunner
b2g_home = '/home/dminor/B2G-emulator'
runner = B2GEmulatorRunner(b2g_home=b2g_home)
runner.start()
runner.stop()
runner.wait()
The stop() and wait() calls return -2. The emulator continues to run.
Comment 1•10 years ago
|
||
I think this is by design. stop() should stop the b2g process *in* the emulator, but the emulator itself shouldn't get shutdown at this point. This way you can restart the b2g process without needing to wait for the whole device to boot back up.
Comment 2•10 years ago
|
||
Calling runner.cleanup() should shutdown the emulator though.. if you want we could also add a runner.device.stop() method to do this.
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #2)
> Calling runner.cleanup() should shutdown the emulator though.. if you want
> we could also add a runner.device.stop() method to do this.
Yep, runner.cleanup() does the trick. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•