public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Dist-Zilla] f44: Fix tmp dir in tests
@ 2026-09-15 16:45
0 siblings, 0 replies; only message in thread
From: @ 2026-09-15 16:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Dist-Zilla
Branch : f44
Commit : d7b82150ce5da8de46d5e385af9f30953e8202cf
Author : Michal Josef Špaček <mspacek@redhat.com>
Date : 2026-09-15T15:50:01+02:00
Stats : +43/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Dist-Zilla/c/d7b82150ce5da8de46d5e385af9f30953e8202cf?branch=f44
Log:
Fix tmp dir in tests
---
diff --git a/Dist-Zilla-6.039-tmp_dir.patch b/Dist-Zilla-6.039-tmp_dir.patch
new file mode 100644
index 0000000..3047752
--- /dev/null
+++ b/Dist-Zilla-6.039-tmp_dir.patch
@@ -0,0 +1,40 @@
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/fakerelease.t Dist-Zilla-6.039/t/plugins/fakerelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/fakerelease.t 2026-09-15 14:27:33.779749994 +0200
++++ Dist-Zilla-6.039/t/plugins/fakerelease.t 2026-09-15 14:38:36.081005104 +0200
+@@ -2,9 +2,12 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil qw(Builder simple_ini);
+ use Test::Fatal qw(exception);
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -12,6 +15,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -35,6 +39,7 @@
+ } ]
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -55,6 +60,7 @@
+ 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+ },
+ },
++ tempdir_root => $temp_dir,
+ );
+
+ local $ENV{DZIL_FAKERELEASE_FAIL} = 1;
diff --git a/perl-Dist-Zilla.spec b/perl-Dist-Zilla.spec
index 416dbcd..1fb82a1 100644
--- a/perl-Dist-Zilla.spec
+++ b/perl-Dist-Zilla.spec
@@ -5,6 +5,7 @@ Summary: Distribution builder; installer not included!
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Dist-Zilla
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Dist-Zilla-%{version}.tar.gz
+Patch0: Dist-Zilla-6.039-tmp_dir.patch
BuildArch: noarch
# Build
BuildRequires: coreutils
@@ -164,6 +165,7 @@ with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Dist-Zilla-%{version}
+%patch -P0 -p1
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
@@ -210,6 +212,7 @@ make test
* Tue Sep 15 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.039-1
- 6.039 bump
- Fix bash completition
+- Fix tmp dir in tests
- Package tests
- Remove nonsense filter
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-15 16:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 16:45 [rpms/perl-Dist-Zilla] f44: Fix tmp dir in tests
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox