From f2b76435ed57207197c0e2ff289b4c6bbd2d6365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Fri, 15 Nov 2024 11:42:34 +0100 Subject: [PATCH] Add xfail to rust-openssl test The tests of the rust-openssl crate are currently failing because upstream enabled tests using the prime192 curve, but this curve has been disabled in openSUSE. Pending upstream fix: https://github.com/sfackler/rust-openssl/pull/2330 --- tests/test_rust.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_rust.py b/tests/test_rust.py index 9c8ceb21..ac5e8555 100644 --- a/tests/test_rust.py +++ b/tests/test_rust.py @@ -6,6 +6,7 @@ import pytest from pytest_container import GitRepositoryBuild +from bci_tester.data import OS_VERSION from bci_tester.data import RUST_CONTAINERS CONTAINER_IMAGES = RUST_CONTAINERS @@ -41,6 +42,16 @@ def test_cargo_version(auto_container): GitRepositoryBuild( repository_url="https://github.com/sfackler/rust-openssl", build_command="zypper -n in libopenssl-devel && cargo build && cargo test", + marks=( + None + if OS_VERSION != "tumbleweed" + else pytest.mark.xfail( + reason=( + "broken test on Tumbleweed due to disabled prime curves," + "see https://github.com/sfackler/rust-openssl/pull/2330" + ) + ) + ), ), GitRepositoryBuild( repository_url="https://github.com/rust-random/rand",