1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

Make the qemu event crash more future proof

This commit is contained in:
Julien Duponchelle 2015-06-26 15:10:41 +02:00
parent 90b0dfebbd
commit feefb075d4
2 changed files with 2 additions and 2 deletions

View File

@ -734,7 +734,7 @@ class QemuVM(BaseVM):
self.status = "stopped"
self._process = None
if returncode != 0:
self.project.emit("log.error", "QEMU process has stopped, return code: {}\n{}".format(returncode, self.read_stdout()))
self.project.emit("log.error", {"message": "QEMU process has stopped, return code: {}\n{}".format(returncode, self.read_stdout())})
@asyncio.coroutine
def stop(self):

View File

@ -148,7 +148,7 @@ def test_termination_callback_error(vm, tmpdir):
(action, event) = queue.get_nowait()
assert action == "log.error"
assert event == "QEMU process has stopped, return code: 1\nBOOMM"
assert event["message"] == "QEMU process has stopped, return code: 1\nBOOMM"
def test_reload(loop, vm):