PYTHON-3180 Use server v3 toolchain in perf tests (#905)

This commit is contained in:
Shane Harvey 2022-03-22 14:52:06 -07:00 committed by GitHub
parent da81c69644
commit 861d79537f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ cd ..
export TEST_PATH="${PROJECT_DIRECTORY}/driver-performance-test-data"
export OUTPUT_FILE="${PROJECT_DIRECTORY}/results.json"
MTCBIN=/opt/mongodbtoolchain/v2/bin
MTCBIN=/opt/mongodbtoolchain/v3/bin
VIRTUALENV="$MTCBIN/virtualenv -p $MTCBIN/python3"
$VIRTUALENV pyperftest

View File

@ -69,8 +69,8 @@ if [ -z "$PYTHON_BINARY" ]; then
# system python3 doesn't exist or exists but is older than 3.6.
if is_python_36 "$(command -v python3)"; then
PYTHON=$(command -v python3)
elif is_python_36 "$(command -v /opt/mongodbtoolchain/v2/bin/python3)"; then
PYTHON=$(command -v /opt/mongodbtoolchain/v2/bin/python3)
elif is_python_36 "$(command -v /opt/mongodbtoolchain/v3/bin/python3)"; then
PYTHON=$(command -v /opt/mongodbtoolchain/v3/bin/python3)
else
echo "Cannot test without python3.6+ installed!"
fi