From 98b876caee58e12c6d1099e6fa9e3863ede08e69 Mon Sep 17 00:00:00 2001 From: Juan Gu Date: Wed, 25 Jan 2023 00:34:14 +0000 Subject: SERVER-73257 Fixed python version issue in shared_scons_cache_pruning.sh --- evergreen/functions/shared_scons_cache_pruning.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'evergreen') 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 -- cgit v1.2.1