[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] avocado/empty_cpu_model.py: use machine:none tag
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 1/5] avocado/empty_cpu_model.py: use machine:none tag |
Date: |
Mon, 16 May 2022 13:53:17 -0300 |
Using tags=machine:none will do two things: it will avoid the need to
passing '-machine none' via self.vm.add_args() and it will set the
self.machine attribute of the parent QEMUSystemTest class (via its
setUp() method).
We'll be relying on self.machine being set apropriately for an upcoming
fix.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
tests/avocado/empty_cpu_model.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/avocado/empty_cpu_model.py b/tests/avocado/empty_cpu_model.py
index 22f504418d..723ecc73af 100644
--- a/tests/avocado/empty_cpu_model.py
+++ b/tests/avocado/empty_cpu_model.py
@@ -10,8 +10,11 @@
from avocado_qemu import QemuSystemTest
class EmptyCPUModel(QemuSystemTest):
+ """
+ :avocado: tags=machine:none
+ """
def test(self):
- self.vm.add_args('-S', '-display', 'none', '-machine', 'none', '-cpu',
'')
+ self.vm.add_args('-S', '-display', 'none', '-cpu', '')
self.vm.set_qmp_monitor(enabled=False)
self.vm.launch()
self.vm.wait()
--
2.32.0