From 353ee2f22af8f07a42a72fd1cbf10751dab02e5f Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Fri, 12 Jun 2015 13:16:16 -0400 Subject: [PATCH] introduce a config option to hide results of install & test framework --- config/tool_shed.ini.sample | 3 +++ lib/galaxy/webapps/tool_shed/config.py | 1 + templates/webapps/tool_shed/repository/common.mako | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/tool_shed.ini.sample b/config/tool_shed.ini.sample index c39f5e14fc6..ca9c15fe99d 100644 --- a/config/tool_shed.ini.sample +++ b/config/tool_shed.ini.sample @@ -103,6 +103,9 @@ require_login = False # path to sendmail sendmail_path = /usr/sbin/sendmail +# Enables displaying of test run results on repo pages. +#display_legacy_test_results = True + # Number of saved tool test results produced by the install and test # framework for each repository. #num_tool_test_results_saved = 5 diff --git a/lib/galaxy/webapps/tool_shed/config.py b/lib/galaxy/webapps/tool_shed/config.py index da81bea7d15..0e967cada0e 100644 --- a/lib/galaxy/webapps/tool_shed/config.py +++ b/lib/galaxy/webapps/tool_shed/config.py @@ -64,6 +64,7 @@ class Configuration( object ): self.len_file_path = resolve_path( kwargs.get( "len_file_path", os.path.join( self.tool_data_path, 'shared','ucsc','chrom') ), self.root ) self.ftp_upload_dir = kwargs.get( 'ftp_upload_dir', None ) # Install and test framework for testing tools contained in repositories. + self.display_legacy_test_results = string_as_bool( kwargs.get( 'display_legacy_test_results', True ) ) self.num_tool_test_results_saved = kwargs.get( 'num_tool_test_results_saved', 5 ) self.update_integrated_tool_panel = False # Galaxy flavor Docker Image diff --git a/templates/webapps/tool_shed/repository/common.mako b/templates/webapps/tool_shed/repository/common.mako index b6382de8047..4a2dc7aabb9 100644 --- a/templates/webapps/tool_shed/repository/common.mako +++ b/templates/webapps/tool_shed/repository/common.mako @@ -1231,7 +1231,7 @@ %endif - %if tool_test_results_root_folder: + %if tool_test_results_root_folder and trans.app.config.tool_data_path: ${render_table_wrap_style( "test_environment" )}