Skip to contentSkip to conversation

tests/avocado: set -machine none for userfwd and vnc tests

RFC PATCH New Alex Bennée 1 participant 1 message Oct 19, 2022

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 tests/avocado: set -machine none for userfwd and vnc tests

These are exercising core QEMU features and don't actually run code. Not specifying a machine will fail when avocado chooses the native arch binary to run. Be explicit.

---
 tests/avocado/info_usernet.py | 3 +++
 tests/avocado/vnc.py          | 1 +
 2 files changed, 4 insertions(+)
tests/avocado/info_usernet.py +3 -0
index b862a47dba..fdc4d90c42 100644
@@ -14,6 +14,9 @@
 
 
 class InfoUsernet(QemuSystemTest):
+    """
+    :avocado: tags=machine:none
+    """
 
     def test_hostfwd(self):
         self.require_netdev('user')
tests/avocado/vnc.py +1 -0
index 187fd3febc..aeeefc70be 100644
@@ -53,6 +53,7 @@ def find_free_ports(count: int) -> List[int]:
 class Vnc(QemuSystemTest):
     """
     :avocado: tags=vnc,quick
+    :avocado: tags=machine:none
     """
     def test_no_vnc(self):
         self.vm.add_args('-nodefaults', '-S')
Signature · 1 line
2.34.1