1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/2df57338a595/ Changeset: 2df57338a595 User: inithello Date: 2013-04-24 20:55:53 Summary: Account for the scenario where a test status is not present in the tool_test_errors dict. Affected #: 1 file diff -r 1a915a754396da8ac986dd410ee99bed12668235 -r 2df57338a595ab96f3f54af2b0e4c2e382198a40 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 @@ -1171,9 +1171,9 @@ # Generate a citable URL for this repository with owner and changeset revision. repository_citable_url = suc.url_join( tool_shed_url, 'view', user.username, repository.name, metadata_row.changeset_revision ) title = 'Functional test results for changeset revision %s of %s' % ( metadata_row.changeset_revision, repository.name ) - tests_passed = len( metadata_row.tool_test_errors[ 'tests_passed' ] ) - tests_failed = len( metadata_row.tool_test_errors[ 'invalid_tests' ] ) - invalid_tests = len( metadata_row.tool_test_errors[ 'test_errors' ] ) + tests_passed = len( metadata_row.tool_test_errors.get( 'tests_passed', [] ) ) + tests_failed = len( metadata_row.tool_test_errors.get( 'test_errors', [] ) ) + invalid_tests = len( metadata_row.tool_test_errors.get( 'invalid_tests', [] ) ) description = '%d tests passed, %d tests failed, %d tests determined to be invalid.' % ( tests_passed, tests_failed, invalid_tests ) # The guid attribute in an RSS feed's list of items allows a feed reader to choose not to show an item as updated # if the guid is unchanged. For functional test results, the citable URL is sufficiently unique to enable 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.