[ https://issues.apache.org/jira/browse/DISPATCH-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Ross resolved DISPATCH-894. ------------------------------- Resolution: Fixed > Unable to run system tests on CentOS 6 (Python 2.6) > --------------------------------------------------- > > Key: DISPATCH-894 > URL: https://issues.apache.org/jira/browse/DISPATCH-894 > Project: Qpid Dispatch > Issue Type: Bug > Components: Tests > Affects Versions: 1.0.0 > Reporter: Ganesh Murthy > Assignee: Ganesh Murthy > Fix For: 1.1.0 > > > On operating systems that have Python 2.6 as the default Python (link CentOS > 6), running ctest does not actually run any tests. Here is a snippet of the > test output > {noformat} > 33/37 Test #33: system_tests_failover_list ................ Passed 0.51 > sec > Start 34: system_tests_denied_unsettled_multicast > 34: Test command: /usr/bin/python > "/home/gmurthy/opensource/qpid-dispatch/build/tests/run.py" "-m" "unittest" > "-v" "system_tests_denied_unsettled_multicast" > 34: Test timeout computed to be: 1500 > 34: ---------------------------------------------------------------------- > 34: Ran 0 test in 0.200s > 34: > 34: OK > 34/37 Test #34: system_tests_denied_unsettled_multicast ... Passed 0.54 > sec > test 35 > Start 35: system_tests_auth_service_plugin > 35: Test command: /usr/bin/python > "/home/gmurthy/opensource/qpid-dispatch/build/tests/run.py" "-m" "unittest" > "-v" "system_tests_auth_service_plugin" > 35: Test timeout computed to be: 1500 > 35: > 35: ---------------------------------------------------------------------- > 35: Ran 0 tests in 0.322s > {noformat} > The problem seems to be that ctest is launching unittest which is older is Py > 2.6 and is not feature rich as in Python 2.7 > To solve this problem, Python provides a backwards compatible unit test > package called unittest2. This unittest2 backports the new features provided > by unittest test framework to older versions of Python. > unittest2 is available for Python versions 2.3 thru 3.4. It offers a test > launcher called unit2 which should be used by ctest. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org