Use %shrink for multi-line cargo_test_skip_list

This fixes macro expansion errors on el8-era rpm.

Related: RHEL-111887
This commit is contained in:
Josh Stone 2026-01-08 17:07:11 -08:00
parent fddbbf1293
commit 2c57de58c8

View File

@ -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})"