Python queue, 2018-03-12
The following changes since commit 6ceb1b51f05f9e1892d082960ed602dca7b6696e:
Merge remote-tracking branch 'remotes/kraxel/tags/audio-20180312-pull-request' into staging (2018-03-12 16:14:37 +0000)
are available in the Git repository at:
git://github.com/ehabkost/qemu.git tags/python-next-pull-request
for you to fetch changes up to 006cc558359d23f070c84d6db324bbb9b54962d7:
device-crash-test: Use 'python' binary (2018-03-12 19:10:16 -0300)
----------------------------------------------------------------
Python queue, 2018-03-12
----------------------------------------------------------------
Eduardo Habkost (4):
device-crash-test: New known crashes
qemu.py: Use items() instead of iteritems()
qmp.py: Encode json data before sending
device-crash-test: Use 'python' binary
scripts/qemu.py | 2 +- scripts/qmp/qmp.py | 2 +- scripts/device-crash-test | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-)
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 1/4] device-crash-test: New known crashes
We are not running the script on "make check" yet, and additional bugs were introduced recently in the tree.
Whitelist the new crashes while we investigate, to allow us to run device-crash-test on "make check" as soon as possible to prevent new bugs.
Message-Id: <[email protected]>
--- scripts/device-crash-test | 4 ++++ 1 file changed, 4 insertions(+)
scripts/device-crash-test +4 -0
@@ -217,11 +217,15 @@ ERROR_WHITELIST = [ {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-pc-machine", 'loglevel':logging.ERROR}, {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr", 'loglevel':logging.ERROR}, {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se->compat \|\| se->instance_id == 0' failed", 'loglevel':logging.ERROR}, + {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.ERROR, 'expected':True}, {'exitcode':-11, 'device':'gus', 'loglevel':logging.ERROR, 'expected':True}, {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.ERROR, 'expected':True}, {'exitcode':-11, 'device':'sb16', 'loglevel':logging.ERROR, 'expected':True}, {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.ERROR, 'expected':True}, {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':logging.ERROR, 'expected':True}, + {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.ERROR, 'expected':True}, + {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.ERROR, 'expected':True}, + {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.ERROR, 'expected':True}, # everything else (including SIGABRT and SIGSEGV) will be a fatal error: {'exitcode':None, 'fatal':True, 'loglevel':logging.FATAL},
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 2/4] qemu.py: Use items() instead of iteritems()
In reply to Eduardo Habkostitems() is less efficient on Python 2.x, but makes the code work on both Python 2 and Python 3.
Message-Id: <[email protected]>
--- scripts/qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/qemu.py +1 -1
@@ -277,7 +277,7 @@ class QEMUMachine(object): def qmp(self, cmd, conv_keys=True, **args): '''Invoke a QMP command and return the response dict''' qmp_args = dict() - for key, value in args.iteritems(): + for key, value in args.items(): if conv_keys: qmp_args[key.replace('_', '-')] = value else:
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 3/4] qmp.py: Encode json data before sending
In reply to Eduardo HabkostOn Python 3, json.dumps() return a str object, which can't be sent directly through a socket and must be encoded into a bytes object. Use .encode('utf-8'), which will work on both Python 2 and Python 3.
Message-Id: <[email protected]>
--- scripts/qmp/qmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/qmp/qmp.py +1 -1
@@ -166,7 +166,7 @@ class QEMUMonitorProtocol(object): """ self.logger.debug(">>> %s", qmp_cmd) try: - self.__sock.sendall(json.dumps(qmp_cmd)) + self.__sock.sendall(json.dumps(qmp_cmd).encode('utf-8')) except socket.error as err: if err[0] == errno.EPIPE: return
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 4/4] device-crash-test: Use 'python' binary
In reply to Eduardo HabkostNow the script works with Python 3, so we can use the 'python' binary provided by the system.
Message-Id: <[email protected]>
--- scripts/device-crash-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/device-crash-test +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python # # Copyright (c) 2017 Red Hat Inc #
Signature · 1 line
2.14.3
Peter Maydell
AppliedQuoted 23 lines · Eduardo Habkost
The following changes since commit
6ceb1b51f05f9e1892d082960ed602dca7b6696e:Merge remote-tracking branch 'remotes/kraxel/tags/audio-20180312-pull-request' into staging (2018-03-12 16:14:37 +0000)
are available in the Git repository at:
git://github.com/ehabkost/qemu.gittags/python-next-pull-requestfor you to fetch changes up to
006cc558359d23f070c84d6db324bbb9b54962d7:device-crash-test: Use 'python' binary (2018-03-12 19:10:16 -0300)
----------------------------------------------------------------
Python queue, 2018-03-12----------------------------------------------------------------
Eduardo Habkost (4):
device-crash-test: New known crashes
qemu.py: Useitems()instead ofiteritems()
qmp.py: Encode json data before sending
device-crash-test: Use 'python' binary
Quoted 4 lines
scripts/qemu.py | 2 +- scripts/qmp/qmp.py | 2 +- scripts/device-crash-test | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-)
Applied, thanks.
-- PMM