commit/galaxy-central: inithello: More explicit specification of return codes, documentation of same.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/50e8e5efacad/ Changeset: 50e8e5efacad User: inithello Date: 2013-03-26 14:27:39 Summary: More explicit specification of return codes, documentation of same. Affected #: 1 file diff -r 5b7bc81c3fc7712894a1ff1bd75476259bf6c591 -r 50e8e5efacadef15969a663ac3849883e0a49727 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 @@ -787,14 +787,19 @@ print '# ----------------------------------------------------------------------------------' print "# %d repositories not installed correctly:" % len( repositories_failed_install ) show_summary_output( repositories_failed_install ) + else: + success = True + else: + success = True print "####################################################################################" - if repositories_tested > 0: - if success: - return 0 - else: - return 1 + # Normally, the value of 'success' would determine whether this test suite is marked as passed or failed + # in the automated buildbot framework. However, due to the procedure used here, we only want to report + # failure if a repository fails to install correctly. Therefore, we have overriden the value of 'success' + # here based on what actions the script has executed. + if success: + return 0 else: - return 0 + return 1 if __name__ == "__main__": now = strftime( "%Y-%m-%d %H:%M:%S" ) 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