summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authorJuan Gu <juan.gu@mongodb.com>2023-01-25 00:34:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-25 01:08:42 +0000
commit98b876caee58e12c6d1099e6fa9e3863ede08e69 (patch)
tree9d119b3fab2678eae5757c37ed518d34a00d61cd /evergreen
parent7613407abbd58e08d724a710304331eeffae74b0 (diff)
downloadmongo-98b876caee58e12c6d1099e6fa9e3863ede08e69.tar.gz
SERVER-73257 Fixed python version issue in shared_scons_cache_pruning.sh
Diffstat (limited to 'evergreen')
-rwxr-xr-xevergreen/functions/shared_scons_cache_pruning.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/evergreen/functions/shared_scons_cache_pruning.sh b/evergreen/functions/shared_scons_cache_pruning.sh
index 379fc75348d..b337f0d0d3b 100755
--- a/evergreen/functions/shared_scons_cache_pruning.sh
+++ b/evergreen/functions/shared_scons_cache_pruning.sh
@@ -56,11 +56,13 @@ if [[ "${project}" == "mongodb-mongo-master" ]]; then
;;
esac
+ activate_venv
+
if [ "Windows_NT" = "$OS" ]; then
echo "dir="$dir
- python buildscripts/scons_cache_prune.py --cache-dir x:/$dir/scons-cache --cache-size $cache_size --prune-ratio 1.0
+ $python buildscripts/scons_cache_prune.py --cache-dir x:/$dir/scons-cache --cache-size $cache_size --prune-ratio 1.0
else
- sudo python buildscripts/scons_cache_prune.py --cache-dir /efs/$dir/scons-cache --cache-size $cache_size --prune-ratio 1.0
+ sudo $python buildscripts/scons_cache_prune.py --cache-dir /efs/$dir/scons-cache --cache-size $cache_size --prune-ratio 1.0
fi
echo ""
done