From d92820113e89bf25cedeaedc22e98b011bb354f2 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 24 May 2024 15:33:25 -0400 Subject: [PATCH] Disable tests on s390x for now - Works around RHBZ#2283132 --- rust-zopfli.spec | 4 ++++ rust2rpm.toml | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/rust-zopfli.spec b/rust-zopfli.spec index 35c0d49..329e289 100644 --- a/rust-zopfli.spec +++ b/rust-zopfli.spec @@ -101,8 +101,12 @@ use the "zlib" feature of the "%{crate}" crate. %if %{with check} %check +# Cannot compile tests on s390x because we cannot compile proptest-derive: +# https://bugzilla.redhat.com/show_bug.cgi?id=2283132 +%ifnarch s390x %cargo_test %endif +%endif %changelog %autochangelog diff --git a/rust2rpm.toml b/rust2rpm.toml index 7da3974..40f6dd4 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -7,3 +7,13 @@ cargo-install-bin = false hide = [ "nightly", ] + +[scripts.check] +pre = [ + "# Cannot compile tests on s390x because we cannot compile proptest-derive:", + "# https://bugzilla.redhat.com/show_bug.cgi?id=2283132", + "%ifnarch s390x", +] +post = [ + "%endif", +]