Skip to content

Commit

Permalink
Merge pull request #361 from vania-pooh/master
Browse files Browse the repository at this point in the history
Ability to pass DRIVER_ARGS to images from the outside (fixes #360)
  • Loading branch information
aandryashin committed Mar 8, 2021
2 parents 9e5acdc + e2d72ed commit 5d1e1fa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions static/chrome/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ DISPLAY_NUM=99
export DISPLAY=":$DISPLAY_NUM"

VERBOSE=${VERBOSE:-""}
DRIVER_ARGS=""
DRIVER_ARGS=${DRIVER_ARGS:-""}
if [ -n "$VERBOSE" ]; then
DRIVER_ARGS="--verbose"
DRIVER_ARGS="$DRIVER_ARGS --verbose"
fi

clean() {
Expand Down
4 changes: 2 additions & 2 deletions static/edge/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ DISPLAY_NUM=99
export DISPLAY=":$DISPLAY_NUM"

VERBOSE=${VERBOSE:-""}
DRIVER_ARGS=""
DRIVER_ARGS=${DRIVER_ARGS:-""}
if [ -n "$VERBOSE" ]; then
DRIVER_ARGS="--verbose"
DRIVER_ARGS="$DRIVER_ARGS --verbose"
fi

clean() {
Expand Down
6 changes: 3 additions & 3 deletions static/firefox/selenoid/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export DISPLAY=":$DISPLAY_NUM"
cp /home/selenium/browsers.json /tmp

VERBOSE=${VERBOSE:-""}
DRIVER_ARGS=${DRIVER_ARGS:-""}
if [ -n "$VERBOSE" ]; then
sed -i 's|@@DRIVER_ARGS@@|, "--log", "debug"|g' /tmp/browsers.json
else
sed -i 's|@@DRIVER_ARGS@@||g' /tmp/browsers.json
DRIVER_ARGS="$DRIVER_ARGS, \"--log\", \"debug\""
fi
sed -i "s|@@DRIVER_ARGS@@|$DRIVER_ARGS|g" /tmp/browsers.json

clean() {
if [ -n "$FILESERVER_PID" ]; then
Expand Down
4 changes: 2 additions & 2 deletions static/opera/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ DISPLAY_NUM=99
export DISPLAY=":$DISPLAY_NUM"

VERBOSE=${VERBOSE:-""}
DRIVER_ARGS=""
DRIVER_ARGS=${DRIVER_ARGS:-""}
if [ -n "$VERBOSE" ]; then
DRIVER_ARGS="--verbose"
DRIVER_ARGS="$DRIVER_ARGS --verbose"
fi

clean() {
Expand Down
4 changes: 2 additions & 2 deletions static/yandex/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ DISPLAY_NUM=99
export DISPLAY=":$DISPLAY_NUM"

VERBOSE=${VERBOSE:-""}
DRIVER_ARGS=""
DRIVER_ARGS=${DRIVER_ARGS:-""}
if [ -n "$VERBOSE" ]; then
DRIVER_ARGS="--verbose"
DRIVER_ARGS="$DRIVER_ARGS --verbose"
fi

clean() {
Expand Down

0 comments on commit 5d1e1fa

Please sign in to comment.