qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-894) Unable to run system tests on CentOS 6 (Python 2.6)
Date Thu, 21 Dec 2017 20:03:00 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300510#comment-16300510
] 

ASF subversion and git services commented on DISPATCH-894:
----------------------------------------------------------

Commit 4a173e1ec0f7e0e8f9d7d37b9549d4f9c9d37fb0 in qpid-dispatch's branch refs/heads/master
from [~ganeshmurthy]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=4a173e1 ]

DISPATCH-894 - Made the following changes to make the system tests work on CentOS 6.
1. Modified system tests to use unittest2 instead of unittest test framework.
2. Modified tests/CMakeLists.txt to use the unit2 test runner.
3. Fixed some tests to use backwards compatible assert functions.
4. Remove unused imports in tests


> 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message