diff --git a/NodeChromeDebug/entry_point.sh b/NodeChromeDebug/entry_point.sh index 5f561d163..a78401991 100644 --- a/NodeChromeDebug/entry_point.sh +++ b/NodeChromeDebug/entry_point.sh @@ -38,7 +38,7 @@ rm -f /tmp/.X*lock env | cut -f 1 -d "=" | sort > asroot sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser sudo -E -i -u seluser \ - $(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done) \ + "$(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done)" \ DISPLAY=$DISPLAY \ xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \ java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \ diff --git a/NodeFirefoxDebug/entry_point.sh b/NodeFirefoxDebug/entry_point.sh index 5f561d163..a78401991 100644 --- a/NodeFirefoxDebug/entry_point.sh +++ b/NodeFirefoxDebug/entry_point.sh @@ -38,7 +38,7 @@ rm -f /tmp/.X*lock env | cut -f 1 -d "=" | sort > asroot sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser sudo -E -i -u seluser \ - $(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done) \ + "$(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done)" \ DISPLAY=$DISPLAY \ xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \ java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \ diff --git a/StandaloneDebug/entry_point.sh b/StandaloneDebug/entry_point.sh index 990365ab2..91ab09d89 100644 --- a/StandaloneDebug/entry_point.sh +++ b/StandaloneDebug/entry_point.sh @@ -23,7 +23,7 @@ sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser # Add root environment variables that are not present in the seluser # environment to an environment file. -$(for E in $(grep -vxFf asseluser asroot); do echo $E="'${!E}'" >> ~seluser/selenv; done) \ +"$(for E in $(grep -vxFf asseluser asroot); do echo $E="'${!E}'" >> ~seluser/selenv; done)" \ echo "DISPLAY=${DISPLAY}" >> ~seluser/selenv sudo -E -i -u seluser \ diff --git a/sa-test.sh b/sa-test.sh index 90963ddef..655e7c6e5 100755 --- a/sa-test.sh +++ b/sa-test.sh @@ -27,7 +27,7 @@ function test_standalone { exit 1 fi - if [ ! "$CIRCLECI" == "true" ]; then + if [ ! "${TRAVIS}" == "true" ]; then echo Tearing down Selenium standalone-$BROWSER$DEBUG container docker stop $SA_NAME docker rm $SA_NAME diff --git a/test.sh b/test.sh index b38505e84..ebdd7e651 100755 --- a/test.sh +++ b/test.sh @@ -59,7 +59,7 @@ function test_node { exit 1 fi - if [ ! "$CIRCLECI" == "true" ]; then + if [ ! "${TRAVIS}" == "true" ]; then echo Removing the test container docker rm $TEST_CONTAINER fi @@ -72,7 +72,7 @@ if [ -z $DEBUG ]; then test_node phantomjs $DEBUG fi -if [ ! "$CIRCLECI" == "true" ]; then +if [ ! "${TRAVIS}" == "true" ]; then echo Tearing down Selenium Chrome Node container docker stop $NODE_CHROME docker rm $NODE_CHROME