1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7e820c43d641/ Changeset: 7e820c43d641 User: Dave Bouvier Date: 2013-05-24 17:26:19 Summary: Enhance the install and test framework to support testing a single changeset revision of a repository. This defaults to testing all repositories and changeset revisions determined to be installable and testable. Affected #: 1 file diff -r cf574a68a1f95524b9412e0944ee2cd705a63ce5 -r 7e820c43d641d784d73526637e3d55ede5f8327e 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 @@ -145,7 +145,15 @@ else: galaxy_encode_secret = os.environ[ 'GALAXY_INSTALL_TEST_SECRET' ] - +testing_single_repository = {} +if 'repository_name' in os.environ and 'repository_owner' in os.environ: + testing_single_repository[ 'name' ] = os.environ[ 'repository_name' ] + testing_single_repository[ 'owner' ] = os.environ[ 'repository_owner' ] + if 'repository_revision' in os.environ: + testing_single_repository[ 'changeset_revision' ] = os.environ[ 'repository_revision' ] + else: + testing_single_repository[ 'changeset_revision' ] = None + class ReportResults( Plugin ): '''Simple Nose plugin to record the IDs of all tests run, regardless of success.''' name = "reportresults" @@ -308,6 +316,19 @@ skipped_previous = ' and metadata revisions that are not the most recent' else: skipped_previous = '' + if testing_single_repository: + log.info( 'Testing single repository with name %s and owner %s.', + testing_single_repository[ 'name' ], + testing_single_repository[ 'owner' ]) + for repository_to_install in detailed_repository_list: + if repository_to_install[ 'name' ] == testing_single_repository[ 'name' ] \ + and repository_to_install[ 'owner' ] == testing_single_repository[ 'owner' ]: + if testing_single_repository[ 'changeset_revision' ] is None: + return [ repository_to_install ] + else: + if testing_single_repository[ 'changeset_revision' ] == repository_to_install[ 'changeset_revision' ]: + return [ repository_to_install ] + return [] log.info( 'After removing deleted repositories%s from the list, %d remain to be tested.', skipped_previous, repositories_tested ) return detailed_repository_list 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.