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

Use subprocess.exec to automatically export environment variables

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:

      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.

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

              Created:
              Updated: