Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1098

Fedora 28 python3-only test issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.4.0
    • Tests
    • None

    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

        1. Dockerfile-DISPATCH-1098
          2 kB
          Charles E. Rolke
        2. run-1098.sh
          0.0 kB
          Charles E. Rolke
        3. build-1098.sh
          0.1 kB
          Charles E. Rolke

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chug Charles E. Rolke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: