Subject: | File::Copy move failing during tests |
Tests fail because File::Copy move fails to move sub directories created in /tmp into t/.
This seems to be causing a lot of fails on CPAN testers. I suspect it may be due to trying to move across file systems. My patch uses File::Copy::Recursive rmove instead. Once changed all tests pass.
I did check the value of $! for the failing move calls and it's "Is a directory". I wasn't able to track down exactly where that's coming from but it's rather cryptic.
Subject: | build.log |
Message body not shown because it is not plain text.
Subject: | rmove.patch |
--- DBIx-Class-Fixtures-1.001020/lib/DBIx/Class/Fixtures.pm 2013-07-20 12:40:41.000000000 -0700
+++ DBIx-Class-Fixtures-1.001020.fixed/lib/DBIx/Class/Fixtures.pm 2013-10-16 12:54:35.006532618 -0700
@@ -12,8 +12,7 @@
use Data::Dump::Streamer;
use Data::Visitor::Callback;
use File::Path;
-use File::Copy::Recursive qw/dircopy/;
-use File::Copy qw/move/;
+use File::Copy::Recursive qw/dircopy rmove/;
use Hash::Merge qw( merge );
use Data::Dumper;
use Class::C3::Componentised;
@@ -718,7 +717,7 @@
}
$self->msg("- moving temp dir to $output_dir");
- move($_, dir($output_dir, $_->relative($_->parent)->stringify))
+ rmove($_, dir($output_dir, $_->relative($_->parent)->stringify))
for $tmp_output_dir->children;
if (-e $output_dir) {