mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow multiple tool data table config files...
... use this functionality to implement tests for tool data API.
This commit is contained in:
@@ -231,7 +231,16 @@ def main():
|
||||
start_server = 'GALAXY_TEST_EXTERNAL' not in os.environ
|
||||
tool_data_table_config_path = None
|
||||
if os.path.exists( 'tool_data_table_conf.test.xml' ):
|
||||
# If explicitly defined tables for test, use those.
|
||||
tool_data_table_config_path = 'tool_data_table_conf.test.xml'
|
||||
else:
|
||||
# ... otherise find whatever Galaxy would use as the default and
|
||||
# the sample data for fucntional tests to that.
|
||||
default_tool_data_config = 'config/tool_data_table_conf.xml.sample'
|
||||
for tool_data_config in ['config/tool_data_table_conf.xml', 'tool_data_table_conf.xml' ]:
|
||||
if os.path.exists( tool_data_config ):
|
||||
default_tool_data_config = tool_data_config
|
||||
tool_data_table_config_path = '%s,test/functional/tool-data/sample_tool_data_tables.xml' % default_tool_data_config
|
||||
shed_tool_data_table_config = 'config/shed_tool_data_table_conf.xml'
|
||||
tool_dependency_dir = os.environ.get( 'GALAXY_TOOL_DEPENDENCY_DIR', None )
|
||||
use_distributed_object_store = os.environ.get( 'GALAXY_USE_DISTRIBUTED_OBJECT_STORE', False )
|
||||
|
||||
Reference in New Issue
Block a user