From 2c57de58c847c148a627d3872817b3d1af4f5ee0 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 8 Jan 2026 17:07:11 -0800 Subject: [PATCH] Use %shrink for multi-line cargo_test_skip_list This fixes macro expansion errors on el8-era rpm. Related: RHEL-111887 --- rust.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust.spec b/rust.spec index 8ad7e86..49cea4d 100644 --- a/rust.spec +++ b/rust.spec @@ -1062,9 +1062,11 @@ rm -rf "./build/%{rust_triple}/test/" %endif %if %with disabled_libssh2 # These tests need ssh - guaranteed to fail when libssh2 is disabled. -%global cargo_test_skip_list %{cargo_test_skip_list} \\\ - net_err_suggests_fetch_with_cli \\\ +%global cargo_test_skip_list %{shrink: + %{cargo_test_skip_list} + net_err_suggests_fetch_with_cli ssh_something_happens +} %endif %if "%{cargo_test_skip_list}" != "" %define cargo_test_skip --test-args "%(printf -- '--skip %%s ' %{cargo_test_skip_list})"