Similarly to the MachineTest base class, this class contains
methods common to linux-user tests.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/acceptance/avocado_qemu/__init__.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/acceptance/avocado_qemu/__init__.py
b/tests/acceptance/avocado_qemu/__init__.py
index d23681818d..2611a5146c 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -14,6 +14,7 @@ import sys
import uuid
import avocado
+from avocado.utils import process
SRC_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..', '..', '..')
sys.path.append(os.path.join(SRC_ROOT_DIR, 'python'))
@@ -138,3 +139,11 @@ class MachineTest(Test):
def tearDown(self):
for vm in self._vms.values():
vm.shutdown()
+
+
+class LinuxUserTest(Test):
+ def setUp(self):
+ self.base_setUp("%s-linux-user", "qemu-%s")
+
+ def run(self, cmd):
+ return process.run("%s %s" % (self.qemu_bin, cmd))