Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29836

Running unit test test_evergreen.py requires PYTHONPATH

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None
    • ALL
    • TIG 2018-04-09

    Description

      The unit test buildscripts/tests/ciconfig/test_evergreen.py requires setting PYTHONPATH if it's invoked as

      python buildscripts/tests/ciconfig/test_evergreen.py
      Traceback (most recent call last):
        File "buildscripts/tests/ciconfig/test_evergreen.py", line 9, in <module>
          import buildscripts.ciconfig.evergreen as _evergreen
      ImportError: No module named buildscripts.ciconfig.evergreen
      

      This works:

      PYTHONPATH=. python buildscripts/tests/ciconfig/test_evergreen.py
      ................
      ----------------------------------------------------------------------
      Ran 16 tests in 0.048s
       
      OK
      

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: