diff --git a/scripts/maintenance-scripts/run_op_body_filter_tests.sh b/scripts/maintenance-scripts/run_op_body_filter_tests.sh
index 71572c33471efc91693d2b3f8db512f0695d08ff..d1bd15de988e7c80151d569553ab649269232754 100755
--- a/scripts/maintenance-scripts/run_op_body_filter_tests.sh
+++ b/scripts/maintenance-scripts/run_op_body_filter_tests.sh
@@ -3,9 +3,6 @@ set -xeuo pipefail
 
 sudo apt-get update
 sudo apt-get install -y git python3 python3-venv python3-pip
-python3 -m pip install --user pipx
-python3 -m pipx ensurepath
-pipx install poetry
 
 SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
 SCRIPTSDIR="$SCRIPTPATH/.."
@@ -33,6 +30,9 @@ echo -e "\e[0Ksection_start:$(date +%s):python_venv[collapsed=true]\r\e[0KCreati
 python3 -m venv --system-site-packages venv/
 # shellcheck disable=SC1091
 . venv/bin/activate
+python3 -m pip install pipx
+python3 -m pipx ensurepath
+pipx install poetry
 (cd "${REPO_DIR}/tests/integration/haf-local-tools" && poetry install)
 echo -e "\e[0Ksection_end:$(date +%s):python_venv\r\e[0K"