Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-test
Commits
70280186
Unverified
Commit
70280186
authored
Jan 15, 2019
by
Tiago Grego
Committed by
GitHub
Jan 15, 2019
Browse files
Merge pull request #28 from Ensembl/feature/multitestdb_custom_prefix
Custom prefix for MultiTestDB database names
parents
1e5cfcec
3aa7f64b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
+5
-1
No files found.
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
View file @
70280186
...
...
@@ -781,7 +781,11 @@ sub create_db_name {
# Create a unique name using host and date / time info
my
$db_name
=
sprintf
(
'
%s_test_db_%s_%s_%s_%s
',
(
exists
$ENV
{'
LOGNAME
'}
?
$ENV
{'
LOGNAME
'}
:
$ENV
{'
USER
'}
),
(
exists
$ENV
{'
ENSEMBL_TESTDB_PREFIX
'}
?
$ENV
{'
ENSEMBL_TESTDB_PREFIX
'}
:
exists
$ENV
{'
LOGNAME
'}
?
$ENV
{'
LOGNAME
'}
:
$ENV
{'
USER
'}
),
$species
,
$dbtype
,
$date
,
$time
);
if
(
my
$path
=
$self
->
_db_path
(
$self
->
dbi_connection
))
{
...
...
Write
Preview
Markdown
is supported
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