Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
c0756fbf
Commit
c0756fbf
authored
Nov 20, 2018
by
Francesc Guasch
Browse files
test(sql): fixed creation of temp db
parent
c9cdee49
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/lib/Test/Ravada.pm
View file @
c0756fbf
...
...
@@ -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)
;
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment