Message ID | 20220516165321.872394-2-danielhb413@gmail.com |
---|---|
State | New |
Headers | show |
Series | machine.py fix for ppc64 tests + avocado changes | expand |
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()
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(-)