File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ function shutdown {
20
20
wait $NODE_PID
21
21
}
22
22
23
+ REMOTE_HOST_PARAM=" "
23
24
if [ ! -z " $REMOTE_HOST " ]; then
24
- >&2 echo " REMOTE_HOST variable is *DEPRECATED* in these docker containers. Please use SE_OPTS= \" -host <host> -port <port> \" instead! "
25
- exit 1
25
+ echo " REMOTE_HOST variable is set, appending -remoteHost "
26
+ REMOTE_HOST_PARAM= " -remoteHost $REMOTE_HOST "
26
27
fi
27
28
28
29
if [ ! -z " $SE_OPTS " ]; then
@@ -37,6 +38,7 @@ xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR"
37
38
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
38
39
-role node \
39
40
-hub http://$HUB_PORT_4444_TCP_ADDR :$HUB_PORT_4444_TCP_PORT /grid/register \
41
+ ${REMOTE_HOST_PARAM} \
40
42
-nodeConfig /opt/selenium/config.json \
41
43
${SE_OPTS} &
42
44
NODE_PID=$!
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ function shutdown {
22
22
wait $NODE_PID
23
23
}
24
24
25
+ REMOTE_HOST_PARAM=" "
25
26
if [ ! -z " $REMOTE_HOST " ]; then
26
- >&2 echo " REMOTE_HOST variable is *DEPRECATED* in these docker containers. Please use SE_OPTS= \" -host <host> -port <port> \" instead! "
27
- exit 1
27
+ echo " REMOTE_HOST variable is set, appending -remoteHost "
28
+ REMOTE_HOST_PARAM= " -remoteHost $REMOTE_HOST "
28
29
fi
29
30
30
31
if [ ! -z " $SE_OPTS " ]; then
@@ -40,6 +41,7 @@ DISPLAY=$DISPLAY \
40
41
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
41
42
-role node \
42
43
-hub http://$HUB_PORT_4444_TCP_ADDR :$HUB_PORT_4444_TCP_PORT /grid/register \
44
+ ${REMOTE_HOST_PARAM} \
43
45
-nodeConfig /opt/selenium/config.json \
44
46
${SE_OPTS} &
45
47
NODE_PID=$!
You can’t perform that action at this time.
0 commit comments