[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/11] qtest.py: Few pylint/style fixes
From: |
Lukáš Doktor |
Subject: |
[Qemu-devel] [PATCH 10/11] qtest.py: Few pylint/style fixes |
Date: |
Thu, 20 Jul 2017 18:28:14 +0200 |
No actual code changes, just few pylint/style fixes.
Signed-off-by: Lukáš Doktor <address@hidden>
---
scripts/qtest.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/scripts/qtest.py b/scripts/qtest.py
index d5aecb5..e4b5788 100644
--- a/scripts/qtest.py
+++ b/scripts/qtest.py
@@ -11,14 +11,11 @@
# Based on qmp.py.
#
-import errno
import socket
-import string
import os
-import subprocess
-import qmp.qmp
import qemu
+
class QEMUQtestProtocol(object):
def __init__(self, address, server=False):
"""
@@ -83,8 +80,11 @@ class QEMUQtestMachine(qemu.QEMUMachine):
socket_scm_helper=None):
if name is None:
name = "qemu-%d" % os.getpid()
- super(QEMUQtestMachine, self).__init__(binary, args, name=name,
test_dir=test_dir,
-
socket_scm_helper=socket_scm_helper)
+ scm_helper = socket_scm_helper
+ super(QEMUQtestMachine, self).__init__(binary, args, name=name,
+ test_dir=test_dir,
+ socket_scm_helper=scm_helper)
+ self._qtest = None
self._qtest_path = os.path.join(test_dir, name + "-qtest.sock")
def _base_args(self):
--
2.9.4
- [Qemu-devel] [PATCH 05/11] qemu.py: Use custom exceptions rather than Exception, (continued)