qemu.py: improve message on negative exit code
commitdab91d9aa00e41ee680524e4f6e99a1e7fe12eb2
authorAmador Pahim <apahim@redhat.com>
Fri, 1 Sep 2017 11:28:20 +0000 (1 13:28 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Sep 2017 23:12:00 +0000 (15 20:12 -0300)
treef772fd4392c191f02dbfc5fa2654470d6dd5d1ec
parent63e0ba55222476c8b96d8c45131c830e00a80eaa
qemu.py: improve message on negative exit code

The current message shows 'self._args', which contains only part of the
options used in the Qemu command line.

This patch makes the qemu full args list an instance variable and then
uses it in the negative exit code message.

Message was moved outside the 'if is_running' block to make sure it will
be logged if the VM finishes before the call to shutdown().

Signed-off-by: Amador Pahim <apahim@redhat.com>
Message-Id: <20170901112829.2571-5-apahim@redhat.com>
[ehabkost: removed superfluous parenthesis]
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py