From 782f8df6e41f29dce2db4970a3ad84aaeb7d8c5f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 22:04:50 +0200 Subject: Adding upstream version 4.3.7. Signed-off-by: Daniel Baumann --- tools/test-setup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/test-setup.sh (limited to 'tools/test-setup.sh') diff --git a/tools/test-setup.sh b/tools/test-setup.sh new file mode 100755 index 0000000..170cd99 --- /dev/null +++ b/tools/test-setup.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -euxo pipefail +# Used by Zuul CI to perform extra bootstrapping + +# sudo used only because currently zuul default tox_executable=tox instead of +# "python3 -m tox" +# https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-ensure-tox.tox_executable + +# Install pip if not already install on the system +python3 -m pip --version || { + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + sudo python3 get-pip.py +} + +# Workaround until ensure-tox will allow upgrades +# https://review.opendev.org/#/c/690057/ +sudo python3 -m pip install -U tox -- cgit v1.2.3