Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-46269

Update unit tests to use python3

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • couchbase-bucket
    • None
    • 1

    Description

      Various CB Server use python for test harnesses and similar. Some of these assume /usr/bin/python is actually Python 2.x.

      As of Ubuntu20.04 (and possibly other distros), /usr/bin/python is Python3, and hence if a given program is not written to work with either python 2 or python 3, it will fail when run on Ubuntu 20.04.

      For example, the following unit test failures are pretty much all due to this issue: http://cv.jenkins.couchbase.com/job/unit-simple-test/32081/testReport/

      We need to update the affected test programs; ideally to migrate them to work with python3 and explicitly request python3 as their interpreter.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty