ignore tests relying on DNS

Related: #1979841
This commit is contained in:
Remi Collet 2021-07-08 08:04:55 +02:00
parent 7f288df78d
commit a332314477

View File

@ -30,7 +30,7 @@
Name: php-pecl-xdebug3
Summary: Provides functions for function traces and profiling
Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}}
Release: 2%{?dist}
Release: 3%{?dist}
Source0: https://github.com/%{pecl_name}/%{pecl_name}/archive/%{gh_commit}/%{pecl_name}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tar.gz
# The Xdebug License, version 1.01
@ -92,6 +92,9 @@ mv NTS/package.xml .
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd NTS
# ignore tests relying on DNS
find tests -type f -exec grep -q 'xdebug.client_host=' {} \; -delete -print
# Check extension version
ver=$(sed -n '/XDEBUG_VERSION/{s/.* "//;s/".*$//;p}' php_xdebug.h)
if test "$ver" != "%{upstream_version}%{?upstream_prever}%{?gh_date:-dev}"; then
@ -212,6 +215,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
* Thu Jul 8 2021 Remi Collet <rcollet@redhat.com> - 3.0.4-3
- ignore tests relying on DNS #1979841
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.4-2
- Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065