Run tests in explicit offline mode

Ant build.xml can check itself if running in offline mode, but it
takes a few minutes for network connection to time out.  To speed up
test execution we explicitly enable offline mode of Ant tests.

Resolves: RHEL-52715
This commit is contained in:
Mikolaj Izdebski 2024-06-13 13:24:30 +02:00
parent 966c5bed0d
commit 99cb5cd474

View File

@ -527,7 +527,7 @@ install -p -m 644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%if %{without ant_minimal}
%check
LC_ALL=C.UTF-8 %{ant} test
LC_ALL=C.UTF-8 %{ant} -Doffline=true test
%endif
%files