commit/galaxy-central: Dave Bouvier: Clear tool test results when the skip tool tests option is enabled.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/161e2f4fae79/ Changeset: 161e2f4fae79 User: Dave Bouvier Date: 2013-07-30 15:23:39 Summary: Clear tool test results when the skip tool tests option is enabled. Affected #: 1 file diff -r 2d288287e40bca9a5954f3da1bebc2dd49849a04 -r 161e2f4fae79cee9d8076c02bf1cdded59c92553 lib/galaxy/webapps/tool_shed/controllers/repository.py --- a/lib/galaxy/webapps/tool_shed/controllers/repository.py +++ b/lib/galaxy/webapps/tool_shed/controllers/repository.py @@ -1947,6 +1947,10 @@ # Handle the mapper behavior. skip_tool_test = skip_tool_test[ 0 ] if skip_tool_tests_checked: + if repository_metadata.tool_test_results: + repository_metadata.tool_test_results = None + trans.sa_session.add( repository_metadata ) + trans.sa_session.flush() if skip_tool_test: comment = skip_tool_test.comment if comment != skip_tool_tests_comment: @@ -1959,12 +1963,12 @@ comment=skip_tool_tests_comment ) trans.sa_session.add( skip_tool_test ) trans.sa_session.flush() - message = "Tools in this revision will be tested by the automated test framework." + message = "Tools in this revision will not be tested by the automated test framework." else: if skip_tool_test: trans.sa_session.delete( skip_tool_test ) trans.sa_session.flush() - message = "Tools in this revision will not be tested by the automated test framework." + message = "Tools in this revision will be tested by the automated test framework." elif kwd.get( 'manage_categories_button', False ): flush_needed = False # Delete all currently existing categories. 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