Skip to content

Commit

Permalink
Merge pull request #5882 from rhrazdil/disable-gecko-when-chrome-version
Browse files Browse the repository at this point in the history
Don't download geckodriver when CHROME_VERSION is defined
  • Loading branch information
openshift-merge-robot authored Jul 6, 2020
2 parents de305a2 + affeaa7 commit fe5214e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ set -exuo pipefail
cd frontend

yarn install
if [ -z "${CHROME_VERSION-}" ]; then
if [ "${BRIDGE_E2E_BROWSER_NAME-}" == 'firefox' ]; then
yarn run webdriver-update
else
yarn run webdriver-update --versions.chrome="$CHROME_VERSION"
if [ -n "${CHROME_VERSION-}" ]; then
yarn run webdriver-update --versions.chrome="$CHROME_VERSION" --gecko=false
else
yarn run webdriver-update --gecko=false
fi
fi

if [ $# -gt 0 ] && [ -n "$1" ]; then
Expand Down

0 comments on commit fe5214e

Please sign in to comment.