diff --git a/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/80-install-chrome.sh b/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/80-install-chrome.sh index 1cd18de0bea..ad28638f9a1 100755 --- a/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/80-install-chrome.sh +++ b/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/80-install-chrome.sh @@ -4,6 +4,9 @@ set -ex # This script will install up-to-date google Chrome needed for Webassembly auto tests. +# shellcheck source=../common/unix/DownloadURL.sh +source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh" + # shellcheck source=../common/unix/DownloadURL.sh source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh" @@ -22,3 +25,14 @@ sudo zypper -nq install --no-confirm google-chrome-stable # Install Chromedriver Chromium sudo zypper -nq install chromedriver +chromeVersion="chrome-for-testing-115" +sha="7242ece1055bdbf503527f8e87c4b5da37c3c60e" +chromeUrl="https://ci-files01-hki.ci.qt.io/input/wasm/chrome/${chromeVersion}.tar.gz" +target="/tmp/chrome-for-testing-115.tar.gz" + +DownloadURL "$chromeUrl" "" "$sha" "$target" +sudo tar -xzf "$target" -C "${HOME}" +sudo rm -f "$target" + +SetEnvVar "BROWSER_FOR_WASM" "${HOME}/${chromeVersion}/chrome" +SetEnvVar "CHROMEDRIVER_PATH" "${HOME}/${chromeVersion}/chromedriver"