Skip to content

Commit 5bab2fa

Browse files
committed
spec: Fix executing ctest on RHEL < 10
Commit ab1a0d5 (spec: Allow to build with ninja) broke spec parsing on RHEL 9 because %ctest macro is does not recongize any arguments there: $ rpm --eval '%ctest -VV' error: Unknown option V in ctest(:-:) This patch falls back to a manual ctest invocation on RHEL < 10.
1 parent d748a42 commit 5bab2fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dnf.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,13 @@ rm %{buildroot}%{_unitdir}/%{name}-makecache.timer
263263
%endif
264264

265265
%check
266+
%if 0%{?rhel} && 0%{?rhel} < 10
267+
pushd %{__cmake_builddir}
268+
ctest -VV
269+
popd
270+
%else
266271
%ctest -VV
272+
%endif
267273

268274

269275
%if %{without dnf5_obsoletes_dnf}

0 commit comments

Comments
 (0)