Don't override Global tempfile.tmpdir for tests.

Tests may bring up multiple Galaxy instances - for integration tests this leads to a longer temp path with each new Galaxy instance brought up. This in turn breaks Conda for tests on Jenkins.
This commit is contained in:
John Chilton
2016-12-24 16:09:15 -05:00
parent 58c1828c4c
commit f34bb5e1f6
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ class Configuration( object ):
# Where dataset files are stored
self.file_path = resolve_path( kwargs.get( "file_path", "database/files" ), self.root )
self.new_file_path = resolve_path( kwargs.get( "new_file_path", "database/tmp" ), self.root )
tempfile.tempdir = self.new_file_path
override_tempdir = string_as_bool( kwargs.get( "override_tempdir", "True" ) )
if override_tempdir:
tempfile.tempdir = self.new_file_path
self.openid_consumer_cache_path = resolve_path( kwargs.get( "openid_consumer_cache_path", "database/openid_consumer_cache" ), self.root )
self.cookie_path = kwargs.get( "cookie_path", "/" )
# Galaxy OpenID settings
+1
View File
@@ -184,6 +184,7 @@ def setup_galaxy_config(
library_import_dir=library_import_dir,
log_destination="stdout",
new_file_path=new_file_path,
override_tempdir=False,
master_api_key=master_api_key,
running_functional_tests=True,
shed_tool_data_table_config=shed_tool_data_table_config,