Description
Building a Fedora 28, python-3-only (no python 2), proton and dispatch leads to some test issues.
- `which python` is empty
- `which unit2` is empty
Define python
CMake finds python OK and builds proton and dispatch with the correct python version. But the tests don't work. python appears to be a python 2 construct. In a python 3 system the executable is installed as python3. Python can be defined with the alternatives command
alternatives --install /usr/bin/python python /usr/bin/python3 1
Define unit2
The self test runner in dispatch expects an executable named unit2. Unit2 is a python 2 executable and in python 3 the equivalent program is named unit2-3. The dispatch build scheme should always use unit2 and thiis can be accomplished for python 3 with:
alternatives --install /usr/bin/unit2 unit2 /usr/bin/unit2-3 1
Proposal
Dispatch self test should use naked python and unit2 commands. An check in the dispatch build could disable tests and warn about them being disabled similar to how a missing unittest2 is handled. See https://issues.apache.org/jira/browse/DISPATCH-919
Attachments
Attachments
Issue Links
- links to