From c1d65f03978ed8c133479ea184dce5e0dc0f8bda Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 4 Feb 2020 17:04:28 -0700 Subject: instantiate test Git::Wrapper instances with an absolute path Prevents various possible failures. Signed-off-by: Sean Whitton --- t/lib/t/Setup.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/lib/t/Setup.pm b/t/lib/t/Setup.pm index 94c3d7c..db0a9c5 100644 --- a/t/lib/t/Setup.pm +++ b/t/lib/t/Setup.pm @@ -8,7 +8,7 @@ use parent 'Exporter'; use File::Slurp; use File::Temp qw(tempdir); use Git::Wrapper; -use File::Spec::Functions qw(catfile); +use File::Spec::Functions qw(catfile rel2abs); use File::chdir; use File::Path qw(rmtree); @@ -19,7 +19,7 @@ sub with_temp_annexes (&) { { local $CWD = $temp; my ($source1, $source2, $dest) - = map { Git::Wrapper->new($_) } qw(source1 source2 dest); + = map { Git::Wrapper->new(rel2abs $_) } qw(source1 source2 dest); mkdir for qw(source1 source2 dest); for ($source1, $source2, $dest) { $_->init; -- cgit v1.2.3