[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 03/15] qtest.py: make logging optional
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [RFC 03/15] qtest.py: make logging optional |
Date: |
Mon, 21 Nov 2016 23:12:01 -0200 |
Support the 'logging' parameter on QEMUQtestMachine, for test
cases that don't require logging.
Signed-off-by: Eduardo Habkost <address@hidden>
---
scripts/qtest.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/qtest.py b/scripts/qtest.py
index 5ac2c69..0496490 100644
--- a/scripts/qtest.py
+++ b/scripts/qtest.py
@@ -80,11 +80,12 @@ class QEMUQtestMachine(qemu.QEMUMachine):
'''A QEMU VM'''
def __init__(self, binary, args=[], name=None, test_dir="/var/tmp",
- socket_scm_helper=None):
+ socket_scm_helper=None, logging=True):
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)
+
socket_scm_helper=socket_scm_helper,
+ logging=logging)
self._qtest_path = os.path.join(test_dir, name + "-qtest.sock")
def _base_args(self):
--
2.7.4
- [Qemu-devel] [RFC 00/15] qmp: Report supported device types on 'query-machines', Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 01/15] qemu.py: Make logging optional, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 02/15] qtest.py: Support QTEST_LOG environment variable, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 03/15] qtest.py: make logging optional,
Eduardo Habkost <=
- [Qemu-devel] [RFC 04/15] qtest.py: Make 'binary' parameter optional, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 05/15] tests: Add rules to non-gtester qtest test cases, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 06/15] qdev: Add device_type field to BusClass, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 07/15] machine: Add MachineClass::default_buses field, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 08/15] qmp: Add 'supported-device-types' field to 'query-machines', Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 10/15] pc: Initialize default bus lists, Eduardo Habkost, 2016/11/21
- [Qemu-devel] [RFC 09/15] pci: Introduce INTERFACE_PCIE_DEVICE interface name, Eduardo Habkost, 2016/11/21