qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 07/24] avocado_qemu: Store "arch" in VM


From: Eduardo Habkost
Subject: [Qemu-devel] [RFC 07/24] avocado_qemu: Store "arch" in VM
Date: Fri, 20 Apr 2018 15:19:34 -0300

From: Lukáš Doktor <address@hidden>

The "arch" is quite important info regarding the current VM, let's store
it so tests can query for it.

Signed-off-by: Lukáš Doktor <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
 tests/avocado/avocado_qemu/test.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/avocado/avocado_qemu/test.py 
b/tests/avocado/avocado_qemu/test.py
index eeb759ec65..6bf7825e55 100644
--- a/tests/avocado/avocado_qemu/test.py
+++ b/tests/avocado/avocado_qemu/test.py
@@ -258,6 +258,7 @@ class _VM(qemu.QEMUMachine):
                  qemu_dst_bin=None):
         if arch is None:
             arch = os.uname()[4]
+        self.arch = arch
         self.ports = _PortTracker()
         self.name = "qemu-%s" % str(uuid.uuid4())[:8]
         if qemu_bin is None:
-- 
2.14.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]