Skip to content

Commit

Permalink
Stop special-casing Travis tmp dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 28, 2016
1 parent 463a18d commit acf8fc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion t/00_setup.t
Expand Up @@ -22,7 +22,8 @@ use Test::More 0.96;
use Test::More 0.96 ();
use Test::Most;

ok( ( -d tmp_dir() ), 'var/tmp exists for testing' );
my $tmp_dir = tmp_dir();
ok( $tmp_dir->stat, "$tmp_dir exists for testing" );

my $server = MetaCPAN::TestServer->new;
$server->setup;
Expand Down
3 changes: 1 addition & 2 deletions t/lib/MetaCPAN/TestHelpers.pm
Expand Up @@ -104,8 +104,7 @@ sub get_config {
}

sub tmp_dir {
my $dir = dir( undef, ( $ENV{TRAVIS} ? 'tmp' : checkout_root() ),
'var', 't', 'tmp' );
my $dir = dir( checkout_root(), 'var', 't', 'tmp' );
$dir->mkpath;
return $dir;
}
Expand Down

0 comments on commit acf8fc3

Please sign in to comment.