فهرست منبع

qemu.py: Fix error message when qemu dies from signal

When qemu dies from a signal, the python code gets a negative
value for exitcode; but signal numbers are positive.  Copy the
pattern used in qemu-iotests/iotests.py for reporting a positive
value.

CC: qemu-trivial@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190111201330.14473-1-eblake@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Eric Blake 6 سال پیش
والد
کامیت
0cabc8f15e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      scripts/qemu.py

+ 1 - 1
scripts/qemu.py

@@ -351,7 +351,7 @@ def shutdown(self):
                 command = ' '.join(self._qemu_full_args)
                 command = ' '.join(self._qemu_full_args)
             else:
             else:
                 command = ''
                 command = ''
-            LOG.warn(msg, exitcode, command)
+            LOG.warn(msg, -exitcode, command)
 
 
         self._launched = False
         self._launched = False