Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2481

Use subprocess.exec to automatically export environment variables

    XMLWordPrintable

Details

    • Task
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Tests

    Description

      We currently use a $PREPARE_SHELL macro to export all environment variables needed/expected by our test suite at runtime. Whenever a new environment variable needs to be added to a given buildvariant, not only do we need to update the axis with the new expansion variable, we must also update the macro to export this expansion as an environment variable.

      This results in a somewhat hard to maintain Evergreen config, especially for newcomers to the project. We can further optimize some of these invocations by switching to using subprocess.exec instead of shell.exec and then setting either the include_expansions_in_env option or the add_expansions_to_env option to automatically set the appropriate environment variables.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              prashant.mital Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: