Skip to content

Commit

Permalink
Check USE_SELVERSION for true or false
Browse files Browse the repository at this point in the history
This value is a boolean cast to string in Groovy. The string is never
empty.
  • Loading branch information
andrewnicols committed Feb 22, 2024
1 parent 0b99a84 commit 3be311a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/main/modules/docker-selenium/docker-selenium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function docker-selenium_setup() {
# TODO: Remove this once we can start using upstream images (selenium 4 or later).
chromeimage="moodlehq/selenium-standalone-chrome:96.0-moodlehq"

if [[ -n ${USE_SELVERSION} ]]; then
if [[ ${USE_SELVERSION} != 'true' ]]; then
chromeimage="selenium/standalone-chrome:${SELVERSION}"
fi

Expand Down

0 comments on commit 3be311a

Please sign in to comment.