From 60a4dd13ab98a3694f01b5e1d4b5de5cd38f0774 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Dec 12 2017 08:39:59 +0000 Subject: Skip additional tests on all EPELs No EPEL provides required Test::Kwalitee version and thus release tests fails there. --- diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec index 5928642..6fd125a 100644 --- a/perl-B-Hooks-EndOfScope.spec +++ b/perl-B-Hooks-EndOfScope.spec @@ -1,8 +1,8 @@ # Run extra test -%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7 -%bcond_without perl_B_Hooks_EndOfScope_enables_extra_test -%else +%if 0%{?perl_bootstrap:1} || ( 0%{?rhel} ) %bcond_with perl_B_Hooks_EndOfScope_enables_extra_test +%else +%bcond_without perl_B_Hooks_EndOfScope_enables_extra_test %endif # Run optional test %bcond_without perl_B_Hooks_EndOfScope_enables_optional_test @@ -59,7 +59,7 @@ BuildRequires: perl(CPAN::Meta::Prereqs) # Author/Release tests # Note: Test::Pod::No404s intentionally omitted as it would fail due to # missing connectivity in the koji build environment -%if 0%{!?perl_bootstrap:1} && !0%{?rhel} +%if %{with perl_B_Hooks_EndOfScope_enables_extra_test} BuildRequires: perl(blib) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) @@ -104,7 +104,9 @@ find %{buildroot} -type f -name .packlist -delete %{_fixperms} %{buildroot} %check +%if %{with perl_B_Hooks_EndOfScope_enables_extra_test} export AUTHOR_TESTING=1 +%endif make test %if %{with perl_B_Hooks_EndOfScope_enables_extra_test} make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"