Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
devel: prefix hostname to server tempdir name
Browse files Browse the repository at this point in the history
This makes finding logs for a particular server much easier.
  • Loading branch information
xdg committed Apr 15, 2015
1 parent 8ad4273 commit 40af799
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devel/lib/MongoDBTest/Role/Server.pm
Expand Up @@ -179,7 +179,10 @@ has tempdir => (
coerce => AbsDir->coercion,
);

sub _build_tempdir { Path::Tiny->tempdir }
sub _build_tempdir {
my $self = shift;
return Path::Tiny->tempdir( TEMPLATE => $self->name . "-XXXXXX" );
}

has logfile => (
is => 'lazy',
Expand Down

0 comments on commit 40af799

Please sign in to comment.