public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Test2-Harness] rawhide: Adapt to changes in perl-Test2-Plugin-Cover-0.000028
@ 2026-08-17 11:09 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-17 11:09 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-Test2-Harness
Branch : rawhide
Commit : 344820c2e34794c8c3275edd847ce539c2838b55
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-08-17T13:06:58+02:00
Stats  : +51/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Test2-Harness/c/344820c2e34794c8c3275edd847ce539c2838b55?branch=rawhide

Log:
Adapt to changes in perl-Test2-Plugin-Cover-0.000028

---
diff --git a/Test2-Harness-1.000172-Make-coverage.t-tolerate-the-new-from-list-ordering.patch b/Test2-Harness-1.000172-Make-coverage.t-tolerate-the-new-from-list-ordering.patch
new file mode 100644
index 0000000..fcf87b6
--- /dev/null
+++ b/Test2-Harness-1.000172-Make-coverage.t-tolerate-the-new-from-list-ordering.patch
@@ -0,0 +1,42 @@
+From dff34fa4800eec9b191672c65590b71283a23797 Mon Sep 17 00:00:00 2001
+From: Chad Granum <exodist7@gmail.com>
+Date: Sun, 16 Aug 2026 19:21:23 -0700
+Subject: [PATCH] Make coverage.t tolerate the new 'from' list ordering
+
+Test2::Plugin::Cover 0.000028 sorts each source sub's 'from' list by a
+serialized key, so '*' now comes after {subtest => 'c'} instead of before
+it. The order carries no meaning: ByRun::get_coverage_tests concatenates
+the lists and the manager sorts what it extracts.
+
+Match the entry as a bag, the way the other multi-element entries in this
+test already are, so the test passes on plugin versions either side of the
+change.
+
+Fixes #451
+
+Petr Pisar: Ported to Test2-Harness-1.000172 from
+dff34fa4800eec9b191672c65590b71283a23797.
+
+diff --git a/t/integration/coverage.t b/t/integration/coverage.t
+index 4eb7af6e7..eb9b9599d 100644
+--- a/t/integration/coverage.t
++++ b/t/integration/coverage.t
+@@ -78,10 +78,11 @@ is(
+                     't/integration/coverage/c.tx' => [{'subtest' => 'c'}],
+                 },
+                 'c' => {
+-                    't/integration/coverage/a.tx' => [
+-                        '*',
+-                        {'subtest' => 'c'},
+-                    ],
++                    't/integration/coverage/a.tx' => bag {
++                        item '*';
++                        item {'subtest' => 'c'};
++                        end;
++                    },
+                     't/integration/coverage/c.tx' => [{'subtest' => 'c'}]
+                 },
+             },
+-- 
+2.55.0
+

diff --git a/perl-Test2-Harness.spec b/perl-Test2-Harness.spec
index 0909592..0e73529 100644
--- a/perl-Test2-Harness.spec
+++ b/perl-Test2-Harness.spec
@@ -4,11 +4,15 @@
 Name:           perl-Test2-Harness
 %global cpan_version 1.000172
 Version:        1.0.172
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Test2 Harness designed for the Test2 event system
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Test2-Harness
 Source0:        https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test2-Harness-%{cpan_version}.tar.gz
+# Adapt to changes in perl-Test2-Plugin-Cover-0.000028, bug #2501026,
+# in upstream 1.000173,
+# <https://github.com/Test-More/Test2-Harness/issues/451>
+Patch0:         Test2-Harness-1.000172-Make-coverage.t-tolerate-the-new-from-list-ordering.patch
 # Help generators to recognize a Perl code
 Patch99:        Test2-Harness-1.000114-Adapt-tests-to-shebangs.patch
 BuildArch:      noarch
@@ -188,6 +192,7 @@ with "%{_libexecdir}/%{name}/test".
 
 %prep
 %setup -q -n Test2-Harness-%{cpan_version}
+%patch -P 0 -p 1
 chmod -x t2/non_perl/test.c
 %if !%{with perl_Test2_Harness_enables_coverage}
 for T in t/integration/coverage{,2,3,4}.t; do
@@ -291,6 +296,9 @@ make test
 %{_libexecdir}/%{name}
 
 %changelog
+* Mon Aug 17 2026 Petr Pisar <ppisar@redhat.com> - 1.0.172-3
+- Adapt to changes in perl-Test2-Plugin-Cover-0.000028 (bug #2501026)
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.172-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-17 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 11:09 [rpms/perl-Test2-Harness] rawhide: Adapt to changes in perl-Test2-Plugin-Cover-0.000028 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox