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

Define "test_env_vars" expansion for "unit test" function

      Scope: Get rid of the code block below in the unit test function, and define test_env_vars for the windows build variant! (in evergreen.yml)

       if [ "Windows_NT" = "$OS" ]; then
         export "PATH=/cygdrive/c/Python39:/cygdrive/c/Python39/Scripts:$PATH"
         export "PYTHONPATH=$(pwd)/../lang/python/wiredtiger):$(cygpath -w $(pwd)/../lang/python)"
       fi
      

      Unit test function

      "unit test":
          command: shell.exec
          params:
            working_dir: "wiredtiger"
            script: |
              set -o errexit
              set -o verbose
              if [ "Windows_NT" = "$OS" ]; then
                export "PATH=/cygdrive/c/Python39:/cygdrive/c/Python39/Scripts:$PATH"
                export "PYTHONPATH=$(pwd)/../lang/python/wiredtiger):$(cygpath -w $(pwd)/../lang/python)"
              fi
              if [ ${is_cmake_build|false} = true ]; then
                cd cmake_build
              else
                cd build_posix
              fi
              ${test_env_vars|} ${python_binary|python3} ../test/suite/run.py ${unit_test_args|-v 2} ${smp_command|} 2>&1
      

            Assignee:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Reporter:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: