Skip to content

Commit

Permalink
test(sql): fixed creation of temp db
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Nov 20, 2018
1 parent c9cdee4 commit c0756fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use warnings;

use Carp qw(carp confess);
use Data::Dumper;
use File::Path qw(make_path);
use YAML qw(DumpFile);
use Hash::Util qw(lock_hash);
use IPC::Run3 qw(run3);
Expand Down Expand Up @@ -1136,8 +1137,7 @@ sub _dir_db {
$dir_db =~ s{(t)/(.*)/.*}{$1/.db/$2};
$dir_db =~ s{(t)/.*}{$1/.db} if !defined $2;
if (! -e $dir_db ) {
warn "mkdir $dir_db";
mkdir $dir_db,0700 or die "$! $dir_db";
make_path $dir_db or die "$! $dir_db";
}
return $dir_db;
}
Expand Down

0 comments on commit c0756fb

Please sign in to comment.