Unverified Commit 70280186 authored by Tiago Grego's avatar Tiago Grego Committed by GitHub
Browse files

Merge pull request #28 from Ensembl/feature/multitestdb_custom_prefix

Custom prefix for MultiTestDB database names
parents 1e5cfcec 3aa7f64b
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment