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:
John Chilton
2015-02-17 14:02:04 -05:00
parent 3027cc213f
commit bc9548753d
+2
View File
@@ -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' ]