public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Test2-Harness] f44: Adapt to changes in perl-Test2-Plugin-Cover-0.000028
Date: Mon, 17 Aug 2026 11:24:26 GMT [thread overview]
Message-ID: <178696586664.1.3025404739125834022.rpms-perl-Test2-Harness-dfbf9b61c591@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Test2-Harness
Branch : f44
Commit : dfbf9b61c5919f52c46247e42f6706aa99c1559c
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-08-17T13:20:32+02:00
Stats : +51/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Test2-Harness/c/dfbf9b61c5919f52c46247e42f6706aa99c1559c?branch=f44
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 1db0974..a3ebc5f 100644
--- a/perl-Test2-Harness.spec
+++ b/perl-Test2-Harness.spec
@@ -4,11 +4,15 @@
Name: perl-Test2-Harness
%global cpan_version 1.000163
Version: 1.0.163
-Release: 1%{?dist}
+Release: 2%{?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
@@ -185,6 +189,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
@@ -286,6 +291,9 @@ make test
%{_libexecdir}/%{name}
%changelog
+* Mon Aug 17 2026 Petr Pisar <ppisar@redhat.com> - 1.0.161-2
+- Adapt to changes in perl-Test2-Plugin-Cover-0.000028 (bug #2501026)
+
* Wed Feb 25 2026 Petr Pisar <ppisar@redhat.com> - 1.0.163-1
- 1.000163 bump
reply other threads:[~2026-08-17 11:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178696586664.1.3025404739125834022.rpms-perl-Test2-Harness-dfbf9b61c591@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox