parent
122937b10d
commit
5512822c56
@ -1,3 +1,4 @@
|
||||
/Module-Install-CheckLib-0.08.tar.gz
|
||||
/Module-Install-CheckLib-0.10.tar.gz
|
||||
/Module-Install-CheckLib-0.12.tar.gz
|
||||
/Module-Install-CheckLib-0.14.tar.gz
|
||||
|
@ -1,54 +0,0 @@
|
||||
From 606062e885f6ad39b50d300b1b0f4ddbbeebdbc0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Wed, 15 Dec 2021 15:41:08 +0100
|
||||
Subject: [PATCH] Allow tests to run from a read-only location
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The tests creatd ./dist directory and later a temporary directetory
|
||||
inside. This broken when running from a read-only location:
|
||||
|
||||
t/02_assert.t ... Error in tempdir() using dist/XXXXXXXXXX: Parent directory (dist) does not exist at t/02_assert.t line 11.
|
||||
# Looks like your test exited with 2 before it could output anything.
|
||||
t/02_assert.t ... Dubious, test returned 2 (wstat 512, 0x200)
|
||||
|
||||
This patch fixes it. It also fixes the strayed ./dist directory.
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
t/01_dist.t | 3 +--
|
||||
t/02_assert.t | 3 +--
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/t/01_dist.t b/t/01_dist.t
|
||||
index f22a91b..3968140 100644
|
||||
--- a/t/01_dist.t
|
||||
+++ b/t/01_dist.t
|
||||
@@ -6,8 +6,7 @@ use File::Path qw[rmtree];
|
||||
use Capture::Tiny qw[capture_merged];
|
||||
|
||||
{
|
||||
-mkdir 'dist';
|
||||
-my $tmpdir = tempdir( DIR => 'dist', CLEANUP => 1 );
|
||||
+my $tmpdir = tempdir( CLEANUP => 1 );
|
||||
chdir $tmpdir or die "$!\n";
|
||||
open MFPL, '>Makefile.PL' or die "$!\n";
|
||||
print MFPL <<'EOF';
|
||||
diff --git a/t/02_assert.t b/t/02_assert.t
|
||||
index a7fa98d..a652c70 100644
|
||||
--- a/t/02_assert.t
|
||||
+++ b/t/02_assert.t
|
||||
@@ -6,8 +6,7 @@ use File::Path qw[rmtree];
|
||||
use Capture::Tiny qw[capture_merged];
|
||||
|
||||
{
|
||||
-mkdir 'dist';
|
||||
-my $tmpdir = tempdir( DIR => 'dist', CLEANUP => 1 );
|
||||
+my $tmpdir = tempdir( CLEANUP => 1 );
|
||||
chdir $tmpdir or die "$!\n";
|
||||
open MFPL, '>Makefile.PL' or die "$!\n";
|
||||
print MFPL <<'EOF';
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1 +1 @@
|
||||
SHA512 (Module-Install-CheckLib-0.12.tar.gz) = c462ed40d202ca21c8b13cb21867fb9e508548b9fbb92e3a3bf356e9788f349a9b126c9ead4aa3acbaddbabd96d575aeebc2137403c8b4766f759d7ea103f5e5
|
||||
SHA512 (Module-Install-CheckLib-0.14.tar.gz) = 470eecf54113e8d6bdd8e0574806239f97028f76c4bb4942422ded0d373863838e56433130259d5dfce213cdddfeff8ef594cb9e6db1b85afaa01d7d1db15ade
|
||||
|
Loading…
Reference in new issue