PYTHON-5199 Fix handling of MongoDB version in run-server (#2193)

This commit is contained in:
Steven Silvester 2025-03-12 10:17:15 -05:00 committed by GitHub
parent 7ef18af49b
commit 4322fdf7ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,10 @@ def start_server():
)
test_name = opts.test_name
# drivers-evergreen-tools expects the version variable to be named MONGODB_VERSION.
if "VERSION" in os.environ:
os.environ["MONGODB_VERSION"] = os.environ["VERSION"]
if opts.auth:
extra_opts.append("--auth")