@@ -11,14 +11,14 @@ set -e
1111# - this gives less erros: DBUS_SESSION_BUS_ADDRESS="unix:abstract=/dev/null"
1212sudo rm -f /var/lib/dbus/machine-id
1313sudo mkdir -p /var/run/dbus
14- sudo service dbus restart
14+ sudo service dbus restart > dbus_service.log
1515# Test dbus works
16- service dbus status
16+ service dbus status > dbus_service_status.log
1717export $( dbus-launch)
1818export NSS_USE_SHARED_DB=ENABLED
19- echo " -- INFO: DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS} "
19+ # echo "-- INFO: DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}"
2020# => e.g. DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-APZO4BE4TJ,guid=6e9c098d053d3038cb0756ae57ecc885
21- echo " -- INFO: DBUS_SESSION_BUS_PID=${DBUS_SESSION_BUS_PID} "
21+ # echo "-- INFO: DBUS_SESSION_BUS_PID=${DBUS_SESSION_BUS_PID}"
2222# => e.g. DBUS_SESSION_BUS_PID=44
2323#
2424# -----------------------------------------------
@@ -54,10 +54,23 @@ export FIREFOX_VERSION=$(firefox_version)
5454export CHROME_VESION=$( chrome_stable_version)
5555export DOSEL_VERSION=$( cat VERSION)
5656
57+ echo " -- INFO: Docker Img. Version: ${DOSEL_VERSION} "
5758echo " -- INFO: Chrome..... Version: ${CHROME_VESION} "
5859echo " -- INFO: Firefox.... Version: ${FIREFOX_VERSION} "
59- echo " -- INFO: Using Selenium.....: ${USE_SELENIUM} "
60- echo " -- INFO: Docker Img. Version: ${DOSEL_VERSION} "
60+
61+ if [ " ${USE_SELENIUM} " == " 2" ]; then
62+ # In the future this warning will be changed to an error and exit command
63+ echo " -- INFO: Using Selenium.....: ${USE_SELENIUM} "
64+ echo -e " \n\n\n\n"
65+ echo " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
66+ echo " !!! WARNING!!! You are using the unmaintained Selenium 2 !!!"
67+ echo " !!! to continue using Selenium 2 please use the proper tag:"
68+ echo " !!! docker pull elgalu/selenium:2 !!!"
69+ echo " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
70+ echo -e " \n\n\n\n"
71+ else
72+ echo " -- INFO: Using Selenium.....: ${SEL_VER} "
73+ fi
6174
6275# export PATH="${PATH}:${BIN_UTILS}"
6376export SUPERVISOR_PIDFILE=" ${RUN_DIR} /supervisord.pid"
@@ -390,8 +403,8 @@ function get_free_display() {
390403 local find_display_num=-1
391404
392405 # Get a list of socket DISPLAYs already used
393- netstat -nlp | grep -Po ' (?<=\/tmp\/\.X11-unix\/X)([0-9]+)' | sort -u > /tmp/netstatX11.log
394- [ ! -s /tmp/netstatX11.log ] && echo " -- INFO: Emtpy file /tmp/netstatX11.log" 1>&3
406+ netstat -nlp 2> /dev/null | grep -Po ' (?<=\/tmp\/\.X11-unix\/X)([0-9]+)' | sort -u > /tmp/netstatX11.log
407+ # [ ! -s /tmp/netstatX11.log ] && echo "-- INFO: Emtpy file /tmp/netstatX11.log" 1>&3
395408
396409 # important: while loops are executed in a subshell
397410 # var assignments will be lost unless using <<<
@@ -441,15 +454,15 @@ function get_free_display() {
441454 break
442455 fi
443456 done
444- [ " ${selected_disp_num} " = " -1" ] || echo " -- INFO: Found free DISPLAY=:${selected_disp_num} " 1>&3
457+ [ " ${selected_disp_num} " = " -1" ] # || echo "-- INFO: Found free DISPLAY=:${selected_disp_num}" 1>&3
445458
446459 echo ${selected_disp_num}
447460}
448461
449462function start_xvfb() {
450463 # Start the X server that can run on machines with no real display
451464 # using Xvfb instead of Xdummy
452- echo " -- INFO: Will try to start Xvfb at DISPLAY=${DISPLAY} " 1>&3
465+ # echo "-- INFO: Will try to start Xvfb at DISPLAY=${DISPLAY}" 1>&3
453466 # if DEBUG = true ...
454467 # echo "Will use the following values for Xvfb"
455468 # echo " screen=${SCREEN_NUM} geometry=${GEOMETRY}"
0 commit comments