commit/galaxy-central: Dave Bouvier: Only display the tool test results folder if a repository has been installed and tested.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/03c0f4d30880/ Changeset: 03c0f4d30880 User: Dave Bouvier Date: 2013-05-16 21:55:01 Summary: Only display the tool test results folder if a repository has been installed and tested. Affected #: 1 file diff -r 487b92cec404614ddf29b6dfb36b6b47ba6fc086 -r 03c0f4d30880d3286e0ccc61c3f2554343c8c53e lib/galaxy/webapps/tool_shed/util/container_util.py --- a/lib/galaxy/webapps/tool_shed/util/container_util.py +++ b/lib/galaxy/webapps/tool_shed/util/container_util.py @@ -799,8 +799,11 @@ containers_dict[ 'valid_tools' ] = valid_tools_root_folder # Tool test results container. if tool_test_results: - folder_id, tool_test_results_root_folder = build_tool_test_results_folder( trans, folder_id, tool_test_results, time_last_tested=time_last_tested ) - containers_dict[ 'tool_test_results' ] = tool_test_results_root_folder + # Only create and populate this folder if there are actual tool test results to display, since the + # display of the 'Test environment' folder by itself can be misleading. + if 'passed_tests' in tool_test_results or 'failed_tests' in tool_test_results or 'installation_errors' in tool_test_results: + folder_id, tool_test_results_root_folder = build_tool_test_results_folder( trans, folder_id, tool_test_results, time_last_tested=time_last_tested ) + containers_dict[ 'tool_test_results' ] = tool_test_results_root_folder # Workflows container. if metadata: if 'workflows' in metadata: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org