summary refs log tree commit diff stats
path: root/tests/avocado/multiprocess.py
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-03-21 11:15:35 +0000
committerAlex Bennée <alex.bennee@linaro.org>2023-03-22 15:06:28 +0000
commit80232dba16dc2e52f7b699af5051d100628ba857 (patch)
tree64635ac5f12e8736503ceb50598cd0d535f92a5a /tests/avocado/multiprocess.py
parent136b6085f1dca34a472d09bfcc552f8060d243a2 (diff)
downloadfocaccia-qemu-80232dba16dc2e52f7b699af5051d100628ba857.tar.gz
focaccia-qemu-80232dba16dc2e52f7b699af5051d100628ba857.zip
tests/avocado: probe for multi-process support before running test
A recent attempt to let avocado run more tests on the CentOS stream
build failed because there was no gating on the multiprocess feature.
Like missing accelerators avocado should gracefully skip when the
feature is not enabled.

In this case we use the existence of the proxy device as a proxy for
multi-process support.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Cc: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Cc: Jagannathan Raman <jag.raman@oracle.com>
Cc: John G Johnson <john.g.johnson@oracle.com>
Message-Id: <20230321111752.2681128-1-alex.bennee@linaro.org>
Diffstat (limited to 'tests/avocado/multiprocess.py')
-rw-r--r--tests/avocado/multiprocess.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/avocado/multiprocess.py b/tests/avocado/multiprocess.py
index 80a3b8f442..9112a4cacc 100644
--- a/tests/avocado/multiprocess.py
+++ b/tests/avocado/multiprocess.py
@@ -22,6 +22,7 @@ class Multiprocess(QemuSystemTest):
                 machine_type):
         """Main test method"""
         self.require_accelerator('kvm')
+        self.require_multiprocess()
 
         # Create socketpair to connect proxy and remote processes
         proxy_sock, remote_sock = socket.socketpair(socket.AF_UNIX,