[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.9 05/17] qtest.py: Make 'binary' parameter opt
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH for-2.9 05/17] qtest.py: Make 'binary' parameter optional |
Date: |
Fri, 2 Dec 2016 19:18:04 -0200 |
If the 'binary' parameter is omitted, use the $QTEST_QEMU_BINARY
environment variable.
Signed-off-by: Eduardo Habkost <address@hidden>
---
Patch originally submitted as part of series:
* [RFC v2 00/20] qmp: Report bus information on 'query-machines'
---
scripts/qtest.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/qtest.py b/scripts/qtest.py
index 0496490..5a37b48 100644
--- a/scripts/qtest.py
+++ b/scripts/qtest.py
@@ -79,8 +79,10 @@ class QEMUQtestProtocol(object):
class QEMUQtestMachine(qemu.QEMUMachine):
'''A QEMU VM'''
- def __init__(self, binary, args=[], name=None, test_dir="/var/tmp",
+ def __init__(self, binary=None, args=[], name=None, test_dir="/var/tmp",
socket_scm_helper=None, logging=True):
+ if binary is None:
+ binary = os.getenv('QTEST_QEMU_BINARY')
if name is None:
name = "qemu-%d" % os.getpid()
super(QEMUQtestMachine, self).__init__(binary, args, name=name,
test_dir=test_dir,
--
2.7.4
- [Qemu-devel] [PATCH for-2.9 00/17] target-i386: Implement query-cpu-model-expansion, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 01/17] qmp: Report QOM type name on query-cpu-definitions, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 02/17] qemu.py: Make logging optional, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 03/17] qtest.py: Support QTEST_LOG environment variable, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 04/17] qtest.py: make logging optional, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 05/17] qtest.py: Make 'binary' parameter optional,
Eduardo Habkost <=
- [Qemu-devel] [PATCH for-2.9 06/17] tests: Add rules to non-gtester qtest test cases, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 07/17] target-i386: Reorganize and document CPUID initialization steps, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 08/17] target-i386: Support "-cpu host" on TCG too, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 09/17] target-i386: Move "host" properties to base class, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 10/17] target-i386: Allow short strings to be used as vendor ID, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 12/17] target-i386: Return migration-safe field on query-cpu-definitions, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 13/17] cpu: Support comma escaping when parsing -cpu, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 11/17] target-i386: Remove AMD feature flag aliases from Opteron models, Eduardo Habkost, 2016/12/02
- [Qemu-devel] [PATCH for-2.9 15/17] target-i386: Define static "base" CPU model, Eduardo Habkost, 2016/12/02