diff options
Diffstat (limited to 'chromium/build/fuchsia/emu_target.py')
-rw-r--r-- | chromium/build/fuchsia/emu_target.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chromium/build/fuchsia/emu_target.py b/chromium/build/fuchsia/emu_target.py index 1d86b0f7646..83e10167914 100644 --- a/chromium/build/fuchsia/emu_target.py +++ b/chromium/build/fuchsia/emu_target.py @@ -82,7 +82,17 @@ class EmuTarget(target.Target): return self._amber_repo def Shutdown(self): - if self._IsEmuStillRunning(): + if not self._emu_process: + logging.error('%s did not start' % (self._GetEmulatorName())) + return + returncode = self._emu_process.poll() + if returncode: + logging.error('%s quit unexpectedly with exit code %d' % + (self._GetEmulatorName(), returncode)) + elif returncode == 0: + logging.info('%s quit unexpectedly without errors' % + self._GetEmulatorName()) + else: logging.info('Shutting down %s' % (self._GetEmulatorName())) self._emu_process.kill() |