Do not log warning at qemu exit on windows if it's normal

Fix #777
This commit is contained in:
Julien Duponchelle
2016-11-16 13:06:43 +01:00
parent ecfa89cba8
commit 928d9f13f4
2 changed files with 13 additions and 2 deletions

View File

@ -922,7 +922,8 @@ class QemuVM(BaseNode):
self.status = "stopped"
self._hw_virtualization = False
self._process = None
if returncode != 0:
# A return code of 1 seem fine on Windows
if returncode != 0 and (returncode != 1 or not sys.platform.startswith("win")):
self.project.emit("log.error", {"message": "QEMU process has stopped, return code: {}\n{}".format(returncode, self.read_stdout())})
@asyncio.coroutine