aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@verizonmedia.com>2024-04-05 13:26:49 +0200
committerGitHub <noreply@github.com>2024-04-05 13:26:49 +0200
commit7370ad575cfd758c1589f433496abad4e53cf453 (patch)
tree691a63a861bb98034da755490626b4b69ad2109a
parentdf1dcfe66cf13cd532f9585aab0a3a6f0c63049c (diff)
parentb388c5c478851057111072fa9caea2066a0d954f (diff)
Merge pull request #30831 from vespa-engine/aressem/allow-arm64
Allow test script to run on arm64.
-rwxr-xr-xscrewdriver/test-quick-start-guide.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/screwdriver/test-quick-start-guide.sh b/screwdriver/test-quick-start-guide.sh
index 4c3feb35a21..577d6561b85 100755
--- a/screwdriver/test-quick-start-guide.sh
+++ b/screwdriver/test-quick-start-guide.sh
@@ -18,8 +18,13 @@ echo -e "urls:\n - en/vespa-quick-start.html" > test/_quick-start.yaml
# Get the required vespa CLI
VESPA_CLI_VERSION=$(curl -fsSL https://api.github.com/repos/vespa-engine/vespa/releases/latest | grep -Po '"tag_name": "v\K.*?(?=")')
-curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VESPA_CLI_VERSION}/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64.tar.gz | tar -zxf - -C /opt
-ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64/bin/vespa /usr/local/bin/
+if [[ $(arch) == x86_64 ]]; then
+ GO_ARCH=amd64
+else
+ GO_ARCH=arm64
+fi
+curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VESPA_CLI_VERSION}/vespa-cli_${VESPA_CLI_VERSION}_linux_${GO_ARCH}.tar.gz | tar -zxf - -C /opt
+ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_${GO_ARCH}/bin/vespa /usr/local/bin/
# Run test
python3 test/test.py -v -c test/_quick-start.yaml