commit/galaxy-central: Dave Bouvier: Add exception handling for edge case when a repository record is not created by the install method.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/311cf2ae1623/ Changeset: 311cf2ae1623 User: Dave Bouvier Date: 2013-05-16 05:51:39 Summary: Add exception handling for edge case when a repository record is not created by the install method. Affected #: 1 file diff -r 53d3c967d373c3b0589a31a4e400b01786cea091 -r 311cf2ae1623289551b0b568975e9840d46097a2 test/install_and_test_tool_shed_repositories/functional_tests.py --- a/test/install_and_test_tool_shed_repositories/functional_tests.py +++ b/test/install_and_test_tool_shed_repositories/functional_tests.py @@ -646,7 +646,11 @@ repository_status[ 'passed_tests' ] = [] repository_status[ 'failed_tests' ] = [] repository_status[ 'installation_errors' ] = dict( current_repository=[], repository_dependencies=[], tool_dependencies=[] ) - repository = test_db_util.get_installed_repository_by_name_owner_changeset_revision( name, owner, changeset_revision ) + try: + repository = test_db_util.get_installed_repository_by_name_owner_changeset_revision( name, owner, changeset_revision ) + except: + log.exception( 'Error getting installed repository.' ) + continue # If the installation succeeds, configure and run functional tests for this repository. This is equivalent to # sh run_functional_tests.sh -installed if success: 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