Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5172

Make lang/python make check test work with python3 in evergreen

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The lang/python test is run by a shell script run-ex_access

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      #!/bin/sh
      
      rm -rf WT_TEST ; mkdir WT_TEST
      
      exec env LD_LIBRARY_PATH=../../.libs DYLD_LIBRARY_PATH=../../.libs PYTHONPATH=.:${srcdir} python -S ${srcdir}/../../examples/python/ex_access.py 
      
      

      Since it will start a new bash, there is no easy way to change the python binary used by the script to python3 in evergreen. Either we have to change the script to allow configuring the python binary or drop the support for python2.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: