Skip a unit test that fails with Rust 1.61+

epel9
Fabio Valentini 3 years ago
parent 4e4163d83f
commit 7e62b503e8
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,4 +1,4 @@
# Generated by rust2rpm 20 # Generated by rust2rpm 21
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
@ -16,7 +16,7 @@ Source: %{crates_source}
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging >= 21
%global _description %{expand: %global _description %{expand:
Rusty Object Notation.} Rusty Object Notation.}
@ -33,9 +33,11 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%license LICENSE-APACHE LICENSE-MIT %license %{crate_instdir}/LICENSE-APACHE
%doc CHANGELOG.md README.md %license %{crate_instdir}/LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -47,7 +49,7 @@ This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+indexmap-devel %package -n %{name}+indexmap-devel
Summary: %{summary} Summary: %{summary}
@ -59,7 +61,7 @@ This package contains library source intended for building other packages which
use the "indexmap" feature of the "%{crate}" crate. use the "indexmap" feature of the "%{crate}" crate.
%files -n %{name}+indexmap-devel %files -n %{name}+indexmap-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
@ -76,7 +78,8 @@ use the "indexmap" feature of the "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
%cargo_test # * skip a unit test that fails with Rust 1.61+
%cargo_test -- -- --skip test_nul_in_string
%endif %endif
%changelog %changelog

Loading…
Cancel
Save