diff options
author | Robert Guo <robert.guo@10gen.com> | 2020-10-02 16:16:06 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-03 02:57:28 +0000 |
commit | defd9c06cadbf9b2afb83e896486108f76f03070 (patch) | |
tree | 8f0e1bce35d858d1855d9415271befe2850ce568 /buildscripts/setup_multiversion_mongodb.py | |
parent | ebcf26aa0080bdd63392e0406c9b9336de3c4582 (diff) | |
download | mongo-defd9c06cadbf9b2afb83e896486108f76f03070.tar.gz |
SERVER-51313 support downloading 4.8 binaries in multiversion tests
Diffstat (limited to 'buildscripts/setup_multiversion_mongodb.py')
-rwxr-xr-x | buildscripts/setup_multiversion_mongodb.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/buildscripts/setup_multiversion_mongodb.py b/buildscripts/setup_multiversion_mongodb.py index e933b24fe7b..f8a57026bd9 100755 --- a/buildscripts/setup_multiversion_mongodb.py +++ b/buildscripts/setup_multiversion_mongodb.py @@ -230,14 +230,15 @@ class MultiVersionDownloader(object): # pylint: disable=too-many-instance-attri continue urls.append((ver, generic_url)) if not urls: - if version != "4.7": + if version not in ["4.7", "4.8"]: raise Exception( "No fall-back generic link available or version {}.".format(version)) - print("manually constructing URL for 4.7 releases;" - "please note that only the latest release is available") + print( + "manually constructing URL for {} releases; please note that only the latest release is available" + .format(version)) - url_template = "https://downloads.mongodb.com/{bucket}/mongodb-{os_family}-{arch}-enterprise-{platform}-4.7.tgz" + url_template = "https://downloads.mongodb.com/{bucket}/mongodb-{os_family}-{arch}-enterprise-{platform}-{version}.tgz" if self.platform == "windows": os_family = self.platform @@ -259,11 +260,12 @@ class MultiVersionDownloader(object): # pylint: disable=too-many-instance-attri platform = self.platform url = url_template.format(bucket=bucket, os_family=os_family, - arch=self.architecture, platform=platform) + arch=self.architecture, platform=platform, + version=version) # URLs with missing sections lead to double dashes. url = url.replace("--", "-") - urls.append(("4.7", url)) + urls.append((version, url)) else: print("Falling back to generic architecture.") |