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.

Related: RHEL-5354
This commit is contained in:
Mikolaj Izdebski 2024-06-13 13:19:40 +02:00
parent 9bc91dc2bc
commit d2690887dc

View File

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