[
https://issues.apache.org/jira/browse/DISPATCH-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300462#comment-16300462
]
ASF GitHub Bot commented on DISPATCH-894:
-----------------------------------------
GitHub user ganeshmurthy opened a pull request:
https://github.com/apache/qpid-dispatch/pull/239
DISPATCH-894 - Made the following changes to make the system tests wo…
…rk 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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ganeshmurthy/qpid-dispatch DISPATCH-894-4
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-dispatch/pull/239.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #239
----
commit 4a173e1ec0f7e0e8f9d7d37b9549d4f9c9d37fb0
Author: Ganesh Murthy <gmurthy@...>
Date: 2017-12-06T15:08:24Z
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: [email protected]
For additional commands, e-mail: [email protected]