mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix tool shed tests for GALAXY_TEST_DB_TEMPLATE unset.
I guess everyone who has ran tool shed tests in the last couple years has set either that or GALAXY_TEST_DBURI? Odd.
This commit is contained in:
@@ -224,6 +224,8 @@ def main():
|
||||
# cases (namely tool shed tests expecting clean database).
|
||||
__copy_database_template(os.environ['GALAXY_TEST_DB_TEMPLATE'], db_path)
|
||||
galaxy_database_auto_migrate = True
|
||||
if not os.path.exists(galaxy_db_path):
|
||||
os.makedirs(galaxy_db_path)
|
||||
galaxy_database_connection = 'sqlite:///%s' % db_path
|
||||
if 'GALAXY_TEST_INSTALL_DBURI' in os.environ:
|
||||
install_galaxy_database_connection = os.environ[ 'GALAXY_TEST_INSTALL_DBURI' ]
|
||||
|
||||
Reference in New Issue
Block a user