From bc9548753d44033b081ee0792ce5cd224bf3af36 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 17 Feb 2015 14:02:04 -0500 Subject: [PATCH] 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. --- test/tool_shed/functional_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tool_shed/functional_tests.py b/test/tool_shed/functional_tests.py index 8a9070df7f1..d8d99c88e58 100644 --- a/test/tool_shed/functional_tests.py +++ b/test/tool_shed/functional_tests.py @@ -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' ]