aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2025-04-14 11:37:32 +0200
committerThomas Huth <thuth@redhat.com>2025-04-23 07:51:25 +0200
commit4e3823c68cc5ce04756a8f11d1ec9c18172f0bd3 (patch)
tree38b97c5734ece0e0a3f82c35dae046a4253aac18
parent4a00039c4666fb3f5b24dca8f3212fe049e0f92e (diff)
downloadqemu-4e3823c68cc5ce04756a8f11d1ec9c18172f0bd3.zip
qemu-4e3823c68cc5ce04756a8f11d1ec9c18172f0bd3.tar.gz
qemu-4e3823c68cc5ce04756a8f11d1ec9c18172f0bd3.tar.bz2
tests/functional/test_vnc: skip test if no crypto backend available
The test_change_password test will fail if no cryptographic backend is available (e.g. if QEMU was built on a system with no cryptographic library development packages installed); just skip the test in that case. Signed-off-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250414093732.220498-1-cohuck@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rwxr-xr-xtests/functional/test_vnc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/test_vnc.py b/tests/functional/test_vnc.py
index 8c9953b..d4e9dd0 100755
--- a/tests/functional/test_vnc.py
+++ b/tests/functional/test_vnc.py
@@ -55,6 +55,8 @@ class Vnc(QemuSystemTest):
except VMLaunchFailure as excp:
if "-vnc: invalid option" in excp.output:
self.skipTest("VNC support not available")
+ elif "Cipher backend does not support DES algorithm" in excp.output:
+ self.skipTest("No cryptographic backend available")
else:
self.log.info("unhandled launch failure: %s", excp.output)
raise excp