Python queue, 2018-10-03
The following changes since commit dafd95053611aa14dda40266857608d12ddce658:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-10-02 18:27:18 +0100)
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 cd0c3da730bc8369f0b6c1c6bf81babd9851060d:
scripts/device-crash-test: Remove entries for serial devices (2018-10-03 23:08:51 -0300)
----------------------------------------------------------------
Python queue, 2018-10-03
* Remove fixed serial device errors from device-crash-test
* Remove unnecessary Python 2.6 compatibility code
----------------------------------------------------------------
Eduardo Habkost (3):
device-crash-test: No need for sys.path hack
Revert "docker.py: Python 2.6 argparse compatibility" Revert "tests: migration/guestperf Python 2.6 argparse compatibility"
Thomas Huth (1):
scripts/device-crash-test: Remove entries for serial devices
scripts/device-crash-test | 6 ------ tests/docker/docker.py | 4 +--- tests/migration/guestperf/shell.py | 8 +++----- 3 files changed, 4 insertions(+), 14 deletions(-)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 1/4] device-crash-test: No need for sys.path hack
The device-crash-test script is already inside the 'scripts' directory, there's no need to add the directory manually to sys.path.
Message-Id: <[email protected]>
--- scripts/device-crash-test | 1 - 1 file changed, 1 deletion(-)
scripts/device-crash-test +0 -1
@@ -35,7 +35,6 @@ import random import argparse from itertools import chain -sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'scripts')) from qemu import QEMUMachine logger = logging.getLogger('device-crash-test')
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 2/4] Revert "docker.py: Python 2.6 argparse compatibility"
In reply to Eduardo HabkostThis reverts commit c2d3189667409561772e8c1e5615c5166cd8aa2c.
scripts/argparse.py was removed from the tree, so we don't need this hack anymore.
Message-Id: <[email protected]>
--- tests/docker/docker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
tests/docker/docker.py +1 -3
@@ -14,14 +14,12 @@ from __future__ import print_function import os import sys -sys.path.append(os.path.join(os.path.dirname(__file__), - '..', '..', 'scripts')) -import argparse import subprocess import json import hashlib import atexit import uuid +import argparse import tempfile import re import signal
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 3/4] Revert "tests: migration/guestperf Python 2.6 argparse compatibility"
In reply to Eduardo HabkostThis reverts commit 0ea47d0f36112f0f38661e2e430edf32737c7f43.
scripts/argparse.py was removed from the tree, so we don't need this hack anymore.
Message-Id: <[email protected]>
--- tests/migration/guestperf/shell.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
tests/migration/guestperf/shell.py +3 -5
@@ -19,14 +19,12 @@ from __future__ import print_function # -import os -import os.path -import sys -sys.path.append(os.path.join(os.path.dirname(__file__), - '..', '..', '..', 'scripts')) import argparse import fnmatch +import os +import os.path import platform +import sys import logging from guestperf.hardware import Hardware
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 4/4] scripts/device-crash-test: Remove entries for serial devices
In reply to Eduardo HabkostFrom: Thomas Huth <[email protected]>
The problem with the various serial devices has been fixed a while ago in commit 47c4f85a0c27888e12af827471cfef87deb49821 ("hw/char/serial:
Allow disconnected chardevs") already, so we can remove these entries from the "ignore" list in the device-crash-test script now.
Message-Id: <[email protected]>
--- scripts/device-crash-test | 5 ----- 1 file changed, 5 deletions(-)
scripts/device-crash-test +0 -5
@@ -98,7 +98,6 @@ ERROR_WHITELIST = [ {'device':'isa-ipmi-bt', 'expected':True}, # IPMI device requires a bmc attribute to be set {'device':'isa-ipmi-kcs', 'expected':True}, # IPMI device requires a bmc attribute to be set {'device':'isa-parallel', 'expected':True}, # Can't create serial device, empty char device - {'device':'isa-serial', 'expected':True}, # Can't create serial device, empty char device {'device':'ivshmem', 'expected':True}, # You must specify either 'shm' or 'chardev' {'device':'ivshmem-doorbell', 'expected':True}, # You must specify a 'chardev' {'device':'ivshmem-plain', 'expected':True}, # You must specify a 'memdev'
@@ -109,9 +108,6 @@ ERROR_WHITELIST = [ {'device':'pc-dimm', 'expected':True}, # 'memdev' property is not set {'device':'pci-bridge', 'expected':True}, # Bridge chassis not specified. Each bridge is required to be assigned a unique chassis id > 0. {'device':'pci-bridge-seat', 'expected':True}, # Bridge chassis not specified. Each bridge is required to be assigned a unique chassis id > 0. - {'device':'pci-serial', 'expected':True}, # Can't create serial device, empty char device - {'device':'pci-serial-2x', 'expected':True}, # Can't create serial device, empty char device - {'device':'pci-serial-4x', 'expected':True}, # Can't create serial device, empty char device {'device':'pxa2xx-dma', 'expected':True}, # channels value invalid {'device':'pxb', 'expected':True}, # Bridge chassis not specified. Each bridge is required to be assigned a unique chassis id > 0. {'device':'scsi-block', 'expected':True}, # drive property not set
@@ -217,7 +213,6 @@ 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':-11, 'device':'isa-serial', '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.18.0.rc1.1.g3f1ff2140
Peter Maydell
AppliedQuoted 12 lines · Eduardo Habkost
The following changes since commit
dafd95053611aa14dda40266857608d12ddce658:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-10-02 18:27:18 +0100)
are available in the Git repository at:
git://github.com/ehabkost/qemu.gittags/python-next-pull-requestfor you to fetch changes up to
cd0c3da730bc8369f0b6c1c6bf81babd9851060d:
scripts/device-crash-test: Remove entries for serial devices (2018-10-03 23:08:51 -0300)
Quoted 7 lines
----------------------------------------------------------------
Python queue, 2018-10-03* Remove fixed serial device errors from device-crash-test
* Remove unnecessary Python 2.6 compatibility code----------------------------------------------------------------
Applied, thanks.
-- PMM