Skip to content

Commit d691571

Browse files
committed
automated: linux: torizon: integration: use tagged release for SPIRE, GECKODRIVER, UV
Refactor code for using tagged version of required packages: - spire - uv - geckodriver Signed-off-by: Pawel Szymaszek <[email protected]>
1 parent 75e5586 commit d691571

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

automated/linux/torizon/integration-tests.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,42 @@ if test -f "${lava_test_dir}/secrets"; then
1818
. "${lava_test_dir}/secrets"
1919
fi
2020

21-
2221
# Determine the appropriate packages for the architecture
2322
SPIRE_VERSION="0.3.4"
23+
GECKO_VERSION="v0.36.0"
24+
UV_VERSION="0.9.4"
2425

2526
detect_abi
2627
case "${abi}" in
2728
x86_64)
28-
DRIVER="geckodriver-v0.36.0-linux64.tar.gz"
29-
SPIRE="staging-spire_${SPIRE_VERSION}_linux_amd64.deb"
29+
GECKODRIVER_ARCH="linux64"
30+
SPIRE_ARCH="linux_amd64"
3031
;;
3132
arm64|aarch64)
32-
DRIVER="geckodriver-v0.36.0-linux-aarch64.tar.gz"
33-
SPIRE="staging-spire_${SPIRE_VERSION}_linux_arm64.deb"
33+
GECKODRIVER="linux-aarch64"
34+
SPIRE_ARCH="linux_arm64"
3435
;;
3536
*)
3637
echo "Unknown architecture: ${abi}"
3738
exit 1
3839
;;
3940
esac
4041

42+
GECKODRIVER="geckodriver-${GECKO_VERSION}-${GECKODRIVER_ARCH}.tar.gz"
43+
SPIRE="staging-spire_${SPIRE_VERSION}_${SPIRE_ARCH}.deb"
44+
4145
# Download and install spire package
4246
curl -sSLO "https://github.com/Linaro/SPIRE-CLI-S-/releases/download/$SPIRE_VERSION/$SPIRE"
4347
dpkg -i "$SPIRE"
4448

4549
# Download and install gecko driver
46-
curl -LO "https://github.com/mozilla/geckodriver/releases/download/v0.36.0/$DRIVER"
47-
tar -xf "$DRIVER"
50+
curl -LO "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/$GECKODRIVER"
51+
tar -xf "$GECKODRIVER"
4852
mv geckodriver /usr/local/bin
4953
chown root:root /usr/local/bin/geckodriver
5054

5155
# Download and install uv
52-
curl -LsSf https://astral.sh/uv/install.sh | sh
56+
curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | sh
5357
. "$HOME"/.local/bin/env
5458

5559
# clone baklava-integration repo and install required pip pkgs

0 commit comments

Comments
 (0)