diff --git a/scripts/maintenance-scripts/run_haf_system_tests.sh b/scripts/maintenance-scripts/run_haf_system_tests.sh
index 913b78008aae43a38041e1bdca037022c63751df..a5b872d8cc7ef975cf716f71fd7d279022f6e56a 100755
--- a/scripts/maintenance-scripts/run_haf_system_tests.sh
+++ b/scripts/maintenance-scripts/run_haf_system_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/.."
@@ -34,6 +31,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 --user 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"